[SR-Users] check for the number of open branches in Reply
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jun 12 10:48:36 CEST 2014
Hello,
$rs is set when handling a sip response, in failure_route use
$T(reply_code):
http://www.kamailio.org/wiki/cookbooks/4.1.x/pseudovariables#t_name
Cheers,
Daniel
On 12/06/14 10:45, Sebastian Damm wrote:
> Hi,
>
> On Wed, Jun 11, 2014 at 5:59 PM, Klaus Darilion
> <klaus.mailinglists at pernau.at <mailto:klaus.mailinglists at pernau.at>>
> wrote:
>
> It may work catching 200 OK in reply_route, but catching >=300 in
> failure route. The failure route is executed only once for all
> branches (it chooses the most important response code)
>
>
> I just tried that, but it looks like I can't access the $rs variable
> in failure route.
>
> I have a failure route which looks like this:
>
> failure_route["acc"] {
> xlog("L_INFO", "FAILURE: Found status $rs, handling.\n");
> route("accounting");
> }
>
> The log gives me this output:
> Jun 12 10:27:02 hagi /usr/sbin/kamailio[2988]: INFO: <script>:
> FAILURE: Found status <null>, handling.
>
> I know that I can check for the code with t_check_status(), but how do
> I just read the final status of the transaction?
>
> Best Regards,
> Sebastian
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140612/4daed563/attachment.html>
More information about the sr-users
mailing list