<div dir="ltr">I tried this but no luck. I'm storing avp in onreply route. That avp is set in radius_extra param.<br><br><div class="gmail_quote">On Mon, Jul 21, 2008 at 10:32 PM, Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>> 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">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;">
I added "modparam("tm", "onreply_avp_mode", 1)" in config file. I've stored the diversion header in reply route using following code.<br>
<br>
if($hdr(Diversion)!=null)<br>
{<br>
avp_delete("$avp(s:src_user_reply)");<br>
$avp(s:src_user_reply) = $hdr(Diversion);<br>
xlog("Client call forwarding to<br>
$avp(s:src_user_reply)\n ");<br>
}<br>
<br>
<br>
But I always get NUll value in $avp(s:src_user_reply) when I check in script when new invite arrives.<br>
</blockquote></div>
The AVP will not be visible in a different transaction (for another invite). The AVP will be present only when doing acc for the transaction you set the AVP for.<br>
<br>
Regards,<br>
Bogdan<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">
<br>
On Mon, Jul 21, 2008 at 1:48 PM, Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>>> wrote:<br>
<br>
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<br>
AVP (be sure an enable onreply_avp_mode -<br>
<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,<br>
use the AVP for extra accouting.<br>
<br>
regards,<br>
Bogdan<br>
<br>
Ruchir wrote:<br>
<br>
I'm using uac_redirect module to handle redirect and<br>
accounting from openser. Redirect works fine so as cdr but I'm<br>
not getting how to write redirect reason in cdr. I didn't find<br>
any way to find and store redirect reason(call forward, busy,<br>
no answer) in CDR. Does anyone know how to do it?<br>
------------------------------------------------------------------------<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br></div>
<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a> <mailto:<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a>><div class="Ih2E3d"><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>