[SR-Users] Source IP address in Failure_route

Ricardo Martinez rmartinez at redvoiss.net
Fri Dec 17 14:19:57 CET 2010


Hello.

I’m trying to obtain the source IP address from a reply message.

This is part of the configuration file :



failure_route[1] {

        if (t_was_cancelled()) {

                xlog("L_INFO", "[$ci] $rm:$ru t_was_cancelled in
failure_route\n");

                exit;

        }



        if ( ($T_rpl($si) != "10.0.0.4") || ($T_rpl($si) != "10.0.0.3")  ) {

                if ( t_check_status("48[0-9]") ) {

                        xlog("L_INFO","[$ci] 48X Received\n");

                        exit;

                }

        }



…





But it seems not to be working.

Is there a way to do what I want?



Thanks in advance,



Regards,

Ricardo.-

* *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101217/b57add3d/attachment.htm>


More information about the sr-users mailing list