<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Thank you Dave, this has been working perfectly for me.<br><br>Regards,<br>Bruce<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Brett Nemeroff <brett@nemeroff.com><br><b><span style="font-weight: bold;">To:</span></b> OpenSIPS users mailling list <users@lists.opensips.org><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, 23 November, 2010 23:31:09<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] Timer Based Failover Question<br></font><br><meta http-equiv="x-dns-prefetch-control" content="off">I do this.. Works
really well..<div>-Brett</div><div><br><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 12:49 PM, Dave Singer <span dir="ltr"><<a rel="nofollow" ymailto="mailto:dave.singer@wideideas.com" target="_blank" href="mailto:dave.singer@wideideas.com">dave.singer@wideideas.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">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 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 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"><div><div></div><div class="h5">On Tue, Nov 16, 2010 at 2:49 AM, Denis Putyato <span dir="ltr"><<a rel="nofollow" ymailto="mailto:denis7979@mail.ru" target="_blank" href="mailto:denis7979@mail.ru">denis7979@mail.ru</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
<div lang="RU"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">And what about</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><a rel="nofollow" target="_blank" href="http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id250384">http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id250384</a></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
<div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;"><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a rel="nofollow" ymailto="mailto:users-bounces@lists.opensips.org" target="_blank" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [mailto:<a rel="nofollow" ymailto="mailto:users-bounces@lists.opensips.org" target="_blank" href="mailto:users-bounces@lists.opensips.org">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 rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><b>Subject:</b> [OpenSIPS-Users] Timer Based Failover Question</span></p>
</div></div><div><div></div><div><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></div></div>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<meta http-equiv="x-dns-prefetch-control" content="on"></div></div>
</div><br>
</body></html>