Possibly this?

AVPs are persistent per SIP transaction, being available in "route", 
"branch_route" and "failure_route". To make them available in "onreply_route" 
armed via TM module, set "onreply_avp_mode" parameter of TM module (note that 
in the default "onreply_route", the AVPs of the transaction are not available).


On Jun 30, 2010, at 12:43 AM, Brett Nemeroff wrote:

> Hello List,
> Thomas Gelf wrote a nice code snippet that converts a 183 SDP to a 180 in an 
> onreply route. I just tried this out and it works great..
> 
> 
> Only one problem. I reset my $avp(s:fr_inv_timer) right before I call it and 
> the change isn't being honored. I'm wondering if it has to do with a 
> t_function not being called?
> 
> Any suggestions on what to do here?
> 
> What I have is essentially:
> 
> 
> onreply_route[1]
> {
>     ...
>    $avp(s:fr_inv_timer)=200;
> 
>    if(t_check_status("183")) {
>         perl_exec("sendReplyAs180");
>         drop();
>     }
> }
> 
> Thanks,
> Brett
> 
> _______________________________________________
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to