<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"><title>Re: [OpenSIPS-Users] adjusting fr_inv_timer mid-transaction</title>
</head>
<body>
<font face="Tahoma, Verdana, Helvetica, Arial"><span style="font-size:10pt">Ah ha! Yes. That looks like the hot ticket. Thanks.<br>
<br>
<br>
- Jeff<br>
<br>
<br>
<br>
On 11/5/09 8:52 AM, "Brett Nemeroff" <<a href="brett@nemeroff.com">brett@nemeroff.com</a>> wrote:<br>
<br>
</span></font><blockquote><font face="Tahoma, Verdana, Helvetica, Arial"><span style="font-size:10pt">What you suggested was something Bogdan recommended to me; but said he had never tried.. lookup a thread called "PDD"<br>
<br>
Here's his reply to me:<br>
"</span></font><span style="font-size:10pt"><font face="Arial">ok :)<br>
<br>
so, do something like:<br>
<br>
enable restart_fr_on_each_reply and onreply_avp_mode (see <a href="http://www.opensips.org/html/docs/modules/1.5.x/tm.html#id271347">http://www.opensips.org/html/docs/modules/1.5.x/tm.html#id271347</a>)<br>
<br>
before sending out the INVITE, set $avp(fr_timer) =2 (see <a href="http://www.opensips.org/html/docs/modules/1.5.x/tm.html#id271112">http://www.opensips.org/html/docs/modules/1.5.x/tm.html#id271112</a>) , so that if no reply is coming in 2 secs, timeout will fire.<br>
<br>
in onreply_route, when receiving 100, set $avp(fr_inv_timer) =5; the timer will be reset and the new val used.<br>
<br>
<br>
in onreply_route, when receiving 18x, set $avp(fr_inv_timer) =200; the timer will be reset and the new val used.<br>
<br>
<br>
never tried this, to be honest :D...<br>
"<br>
</font><font face="Tahoma, Verdana, Helvetica, Arial"><br>
-Brett<br>
<br>
On Thu, Nov 5, 2009 at 7:43 AM, Jeff Pyle <<a href="jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>> wrote:<br>
</font></span><blockquote><span style="font-size:10pt"><font face="Tahoma, Verdana, Helvetica, Arial">Brett,<br>
<br>
My fear was that the TM module may look at the AVP at the moment of the initial t_relay only, not afterwards. I’m hoping to hear an answer to that, or perhaps, another way to accomplish it altogether.<br>
<font color="#888888"><br>
<br>
- Jeff<br>
</font><br>
<br>
<br>
<br>
On 11/5/09 8:40 AM, "Brett Nemeroff" <<a href="brett@nemeroff.com">brett@nemeroff.com</a> <<a href="http://brett@nemeroff.com">http://brett@nemeroff.com</a>> > wrote:<br>
<br>
</font></span><blockquote><span style="font-size:10pt"><font face="Tahoma, Verdana, Helvetica, Arial">Jeff, <br>
I discussed this with Bogdan in an earlier thread (maybe a month ago) as a way of failing a call with too much PDD. I haven't tried it yet, but I suspect that what you've described is just right.<br>
<br>
btw, let me know. :)<br>
-Brett<br>
<br>
<br>
On Wed, Nov 4, 2009 at 8:32 PM, Jeff Pyle <<a href="jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a> <<a href="http://jpyle@fidelityvoice.com">http://jpyle@fidelityvoice.com</a>> > wrote:<br>
</font></span><blockquote><span style="font-size:10pt"><font face="Tahoma, Verdana, Helvetica, Arial">Hello,<br>
<br>
I'm looking for a way to have different timeout values in the case where a<br>
100 has been received versus a 18x.<br>
<br>
For example, if I t_relay an INVITE to a CPE gateway, I'll receive a 100<br>
right away. But if the device behind the gateway is malfunctioning I won't<br>
receive a 180, 183 or 200 like I normally would. My goal is to have the<br>
transaction to timeout after 5 seconds if only a 100 has been received, but<br>
wait 120 seconds if a 18x has been received.<br>
<br>
It looks like tm's fr_inv_timer controls both. Is it possible to start with<br>
a default of 6 seconds but update the fr_inv_timer_avp value in a<br>
reply_route once a 18x response has been received?<br>
<br>
Or am I thinking too hard about this?<br>
<br>
<br>
Regards,<br>
Jeff<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="Users@lists.opensips.org">Users@lists.opensips.org</a> <<a href="http://Users@lists.opensips.org">http://Users@lists.opensips.org</a>> <br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</font></span></blockquote><span style="font-size:10pt"><font face="Tahoma, Verdana, Helvetica, Arial"><br>
<br>
</font></span></blockquote><span style="font-size:10pt"><font face="Tahoma, Verdana, Helvetica, Arial"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</font></span></blockquote><span style="font-size:10pt"><font face="Tahoma, Verdana, Helvetica, Arial"><br>
<br>
</font></span></blockquote>
</body>
</html>