I ran into the same problem with one of our carriers. The way I did it, with advice from bogdan, was to set the fr_inv_timer_avp to 6 sec (so long because of some calls to cell phone systems have long delays) when sending to the particular carrier then in a reply route special to that carrier, reset it to the normal 300 if the response was a 18x. Here are the pertinent parts:<div>
<div><br></div><div>modparam("tm", "fr_inv_timer", 300) # Timer on Final response: Minimum is 2 sec, Default is 120 sec.</div><div>modparam("tm", "restart_fr_on_each_reply", 1) # Reset fr_int_timer on each reply. Needed if you want to adjust the <meta http-equiv="content-type" content="text/html; charset=utf-8">fr_inv_timer_avp with avp depending on reply.</div>
<div>modparam("tm", "fr_inv_timer_avp", "$avp(i:2)") # Used if overide of fr_inv_timer param is needed.</div><div>modparam("tm", "onreply_avp_mode", 1) # set to 1 if you want to access and or save avps from or for other parts of the transaction, like changing the <meta http-equiv="content-type" content="text/html; charset=utf-8">fr_inv_timer_avp.</div>
<div><div><br></div><div>route[carrier_c] {</div><div><div> if (is_method("INVITE")) {</div><div> t_on_failure("2");</div><div> t_on_reply("2");</div><div>
$avp(i:2) = 6;</div><div> }</div></div></div><div>}</div><div>onreply_route[2] {</div><div> /* once we get ring progress let it ring for upto 300 sec */</div><div> fix_nated_contact();</div>
<div> if ( $rs =~ "18." ) {</div><div> $avp(i:2) = 300;</div><div> #xlog("got ringing, reset final timer to $avp(i:2) sec.\n");</div><div> }</div><div>}</div>
<div><br></div><div class="gmail_quote">On Tue, Nov 16, 2010 at 2:49 AM, Denis Putyato <span dir="ltr"><<a href="mailto:denis7979@mail.ru">denis7979@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="RU" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New";color:#1F497D">And what about</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New";color:#1F497D"><a href="http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id250384" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id250384</a></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New";color:#1F497D"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New";color:#1F497D"> </span></p>
<div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] <b>On Behalf Of </b>Bruce Borrett<br>
<b>Sent:</b> Tuesday, November 16, 2010 1:40 PM<br><b>To:</b> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><b>Subject:</b> [OpenSIPS-Users] Timer Based Failover Question</span></p>
</div></div><div><div></div><div class="h5"><p class="MsoNormal"> </p><div><div><p class="MsoNormal">Hi All<br><br>I am having a problem where a SIP provider are sometimes sending us a 100, but then nothing afterwards. I would like to fail these calls over using a timer, but fr_timer wont work since we are receiving a 100, and fr_inv_timer requires a very lengthy duration which also will not work as I would like for the call to failover within 5 seconds maximum.<br>
<br>Does anyone have any other suggestion for me please?<br><br>Regards,<br>Bruce Borrett</p></div></div><p class="MsoNormal"> </p></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>