[Serusers] Selective failure_route handling

Marian Dumitru marian.dumitru at voice-sistem.ro
Thu Feb 17 18:05:28 CET 2005


Hi Even,

Inside failure route, you can use t_check_status("regexp") to verify the 
response code:

if (t_check_status("4[0-9][0-9]")) {
...
..
}

Best regards,
Marian

Evan Borgstrom wrote:
> 	Has anyone found a way to selectively respond to failures using
> failure_route's? For instance I want to only run the actions in the
> failure_route if the code that triggered the failure route is certain
> 400 or 500 error codes. Since the sip msg passed into the failure_route
> is the initial message that triggered the failure (usually the INVITE)
> using methods from the textops module don't work.
> 
> Thanks,
> Evan
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 

-- 
Voice System
http://www.voice-system.ro




More information about the sr-users mailing list