<div dir="ltr">I added &quot;modparam(&quot;tm&quot;, &quot;onreply_avp_mode&quot;, 1)&quot; in config file. I&#39;ve stored the diversion header in reply route using following code.<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
if($hdr(Diversion)!=null)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; avp_delete(&quot;$avp(s:src_user_reply)&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $avp(s:src_user_reply) = $hdr(Diversion);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xlog(&quot;Client call forwarding to $avp(s:src_user_reply)\n &quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></blockquote><br>But I always get NUll value in $avp(s:src_user_reply) when I check in script when new invite arrives.<br><br><div class="gmail_quote">On Mon, Jul 21, 2008 at 1:48 PM, Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Ruchir,<br>
<br>
You may try the following approach:<br>
<br>
1) in onreply_route, if 3xx, store the info from the reply in an AVP (be sure an enable onreply_avp_mode - <a href="http://www.openser.org/docs/modules/1.3.x/tm.html#AEN313" target="_blank">http://www.openser.org/docs/modules/1.3.x/tm.html#AEN313</a>)<br>

<br>
2) in failure route, if the 3xx was selected as final response, use the AVP for extra accouting.<br>
<br>
regards,<br>
Bogdan<br>
<br>
Ruchir wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
I&#39;m using uac_redirect module to handle redirect and accounting from openser. Redirect works fine so as cdr but I&#39;m not getting how to write redirect reason in cdr. I didn&#39;t find any way to find and store redirect reason(call forward, busy, no answer) in CDR. Does anyone know how to do it?<br>
</div>
------------------------------------------------------------------------<div class="Ih2E3d"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
</div><div class="Ih2E3d"><a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
 &nbsp;<br>
</div></blockquote>
<br>
</blockquote></div><br></div>