[SR-Users] Source IP address in Failure_route

Alex Balashov abalashov at evaristesys.com
Fri Dec 17 16:46:03 CET 2010


On 12/17/2010 08:19 AM, Ricardo Martinez wrote:
> 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.

What do you mean by "not working?"  It works for us;  we use it in 
failure routes all the time.  What happens if you xlog() $T_rpl($si)?

-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-users mailing list