<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi Will,<br>
<br>
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").<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 14.02.2015 03:54, Will Bazdarich wrote:<br>
</div>
<blockquote
cite="mid:1588487000.511951.1423878890049.JavaMail.yahoo@mail.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:10px">
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4652">Hello,</div>
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4653"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4653">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:</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding:
0px;" id="yui_3_16_0_1_1423878234088_4779">
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4653" class=""
style="">rewritehostport("192.168.1.1");</div>
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4653" class=""
style=""><span class="" style="white-space:pre"> </span>t_on_reply("dip_reply");</div>
</blockquote>
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4653" class=""
style=""><br class="" style="">
</div>
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4653" class=""
style="">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.</div>
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4653" class=""
style=""><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1423878234088_4653" class=""
style="">thanks!</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>