<div dir="ltr"><div><div><div><div><div><div>Hello Daniel,<br><br></div>Yes, i have attached this in this email, please checkout.<br></div>Regarding to t_set_fr() function, i use it in several places within my kamailio scripts without any issue, I only noticed this behavior on this particular case.<br><br></div>I don't if this can be relevant but I have tested t_set_fr function with the following parameters => t_set_fr(,2000) and it entered on failure route after 2 seconds.<br><br><br></div>Let me know if do you need anything else.<br></div>Thank you<br></div>José Seabra<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-06 13:26 GMT+00:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>any error log messages? Any other t_set_fr() in your config file
that may be executed?<br>
</p>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div class="m_-2464625931462228207moz-cite-prefix">On 06/12/2016 12:01, José Seabra wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>Hello there,<br>
I'm using t_set_fr(0,2000) on calls to registered phones but
by any reason this isn't working, the call only enters on
the failure route after 30 seconds in case of no response
from SBC/Phone, anyone has any idea what can be the reason
for that?<br>
</div>
<br>
if(lookup("location")) {<br>
xlog("L_INFO", "routing to registered
phone ruid=$ruid R=$ru - ID=$ci \n");<br>
t_set_fr(0, 2000);<br>
t_on_failure("ASBC_FAILURE");<br>
t_on_branch("ASBC_BRANCH");<br>
route(RELAY);<br>
exit;<br>
}<br>
</div>
<br>
My RELAY route:<br>
route[RELAY] {<br>
<br>
# enable additional event routes for forwarded requests<br>
# - serial forking, RTP relaying handling, a.s.o.<br>
if (is_method("INVITE|BYE|<wbr>SUBSCRIBE|UPDATE"))<br>
{<br>
if(!t_is_set("branch_route"))
t_on_branch("MANAGE_BRANCH");<br>
}<br>
if (is_method("INVITE|SUBSCRIBE|<wbr>UPDATE"))<br>
{<br>
if(!t_is_set("onreply_route"))
t_on_reply("MANAGE_REPLY");<br>
}<br>
if (is_method("INVITE"))<br>
{<br>
if(!t_is_set("failure_route"))
t_on_failure("MANAGE_FAILURE")<wbr>;<br>
}<br>
<br>
if (!t_relay())<br>
{<br>
sl_reply_error();<br>
}<br>
exit;<br>
}<br>
<br>
version: kamailio 4.4.2 (x86_64/linux)<br>
<br>
<div>
<div>Thanks<br>
</div>
<div>
<div>
<div><br>
-- <br>
<div class="m_-2464625931462228207gmail_signature">Cumprimentos
<div>José Seabra</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_-2464625931462228207mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_-2464625931462228207moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_-2464625931462228207moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre class="m_-2464625931462228207moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-2464625931462228207moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-2464625931462228207moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_-2464625931462228207moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div>