Daniel,<div><br></div><div>I tried this configuration snippet.</div><div><br></div><div><div>        t_on_failure(&quot;FAIL_ONE&quot;);</div><div>        # Do not try opening connections with clients since they are behind NAT </div>
<div>        set_forward_no_connect();</div><div><br></div><div>        xlog(&quot;L_ALERT&quot;, &quot;calling t_relay\n&quot;);</div><div><br></div><div>        # set timeout to be less 30s for INVITE and 20s for Non-INVTIEs</div>
<div>        t_set_fr(30000, 20000); </div><div>        if (!t_relay()) </div><div>{</div><div>...</div><div>}</div><div><br></div><div>I don&#39;t see a change in the response... It is still taking 45-50 secs for the 477 error response to MESSAGE from t_relay().</div>
<div><br></div><div>Krish Kura </div><br><div class="gmail_quote">On Tue, Apr 3, 2012 at 6:39 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><div class="h5"><br>
<br>
On 3/30/12 2:27 PM, Krishna Kurapati wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I have<br>
<br>
# Time in seconds after a TCP connection will be closed if it is not available for writing in this interval<br>
tcp_send_timeout=2<br>
<br>
And I am using<br>
<br>
save(&quot;location&quot;, &quot;0x04&quot;))<br>
<br>
to save only one contact per user.<br>
<br>
However, when I tried to relay message to a user, sometimes it is taking over 45 seconds for t_relay to timeout<br>
and return 477 error.<br>
<br>
How can I reduce the t_relay timeout?<br>
</blockquote>
<br></div></div>
tm related timeouts can be adjusted via parameters or functions from tm module:<br>
<br>
<a href="http://kamailio.org/docs/modules/stable/modules/tm.html" target="_blank">http://kamailio.org/docs/<u></u>modules/stable/modules/tm.html</a><br>
<br>
look for fr_timer...<br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla<br>
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany<br>
<a href="http://www.asipto.com/index.php/kamailio-advanced-training/" target="_blank">http://www.asipto.com/index.<u></u>php/kamailio-advanced-<u></u>training/</a><br>
<br>
</font></span></blockquote></div><br></div>