[OpenSIPS-Users] Handling Timeouts from Redirect Server
bogdan at opensips.org
Tue Feb 24 17:56:13 CET 2015
Yes, you can do that. Set the fr_timer to 3, arm the dip_reply as you do
now and that's all. If there is no reply from the LNP server in 3 secs,
the TM module will generate an internal 408 Timeout for you. This 408
may go all the way back to caller, or if you want to catch it, use a
failure route - t_on_failure("dip_failed").
OpenSIPS Founder and Developer
On 14.02.2015 03:54, Will Bazdarich wrote:
> I am getting occasional timeouts from a LNP server and I would like to
> be able to gracefully handle that event. Currently I dip the server
> using t_on_reply:
> I have an on_reply_route[dip_reply] block which parses the Contact
> header, etc. I have been reading up on t_on_failure but it appears
> that it might override the t_on_reply since the response from the LNP
> server is a 302. Can I keep my t_on_reply and prepare a route if the
> INVITE I send times out? I have set "fr_timer" to 3 using modparam.
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users