Monday, 12 January 2015

OPENSIPS 477 send failed not Entering into Failure Root

By vm  |  22:53 No comments

Failure Route is not executed on a 477 or IP-Blocked error.
- t_on_failure is set
- failure_route is existing
- t_relay is always positive in an if-construct
- you may catch the 477 error inscript but not as a failure route
- Status code is always send
We expected the same behaviour as on a 408 error.


Actually this case is supposed to work a bit different when you think. By design (on logical reasons), the failure route is triggered only when there is a SIP failure (transaction failed with negative reply).
In your case, you have a different case of failure - you were actually not able to send the INVITE out, so it is a transport error. So failure route is not supposed to be triggered.
What to do here is to use the "0x02" flag with t_relay() - seehttp://www.opensips.org/html/docs/modules/1.9.x/tm.html#id293413 - this will make t_relay() to return failure to script instead of sending the 477 out -> at script level you can handle the failure.

Author: vm

Hello, I am Author, decode to know more: In commodo magna nisl, ac porta turpis blandit quis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In commodo magna nisl, ac porta turpis blandit quis. Lorem ipsum dolor sit amet.

0 comments:

E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles

© 2014 VOIP4Learn. WP themonic converted by Bloggertheme9. Powered by Blogger.
TOP