<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Thanks Bogdan &amp; Liviu,</div>

<div>&nbsp;</div>

<div>I have implemented the &quot;failure_route&quot; technique suggested by Liviu.<br/>
It is working fine.</div>

<div>&nbsp;</div>

<div>Will try with t_relay(&quot;0x2&quot;) and let this forum know how it works.&nbsp;<br/>
I think it should fail and return &nbsp;-6 &nbsp;(- generic send failed), because the transport of the RURI (Callee Device) is TCP.<br/>
But not sure if &quot;tcp_async=1&quot; affects it... Will try with &quot;tcp_async=0&quot; also.</div>

<div>&nbsp;</div>

<div>Need little more info on following timeout parameters:<br/>
&nbsp;&#36;T_fr_timeout<br/>
&nbsp;&#36;T_fr_inv_timeout</div>

<div>Is there a way to determine (inside the failure_route) which &#39;timeout&#39; occurred?</div>

<div>&nbsp;</div>

<div>Thanks<br/>
-Gary</div>
</div>

<div>
<div>&nbsp;</div>

<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b>&nbsp;Wednesday, July 16, 2014 at 8:37 AM<br/>
<b>From:</b>&nbsp;&quot;Bogdan-Andrei Iancu&quot; &lt;bogdan@opensips.org&gt;<br/>
<b>To:</b>&nbsp;&quot;OpenSIPS users mailling list&quot; &lt;users@lists.opensips.org&gt;, &quot;Gary Nyquist&quot; &lt;gn62@gmx.us&gt;<br/>
<b>Subject:</b>&nbsp;Re: [OpenSIPS-Users] t_relay</div>

<div name="quoted-content">
<div style="background-color: rgb(255,255,255);">
<div class="moz-cite-prefix"><tt>Gary,<br/>
<br/>
Maybe take a look at the 0x02 flag for t_relay() :<br/>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.12.x/tm.html#id294571" target="_blank">http://www.opensips.org/html/docs/modules/1.12.x/tm.html#id294571</a><br/>
<br/>
by default, t_relay() is internally sending a negative reply if not able to send the request out (like DNS failure, bad IP, network error, etc).<br/>
<br/>
Regards,</tt>

<pre class="moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
On 16.07.2014 10:43, Liviu Chircu wrote:</div>

<blockquote>
<div class="moz-cite-prefix"><tt>Hello,<br/>
<br/>
t_relay() will only &quot;fail&quot; because of internal reasons (e.g. out of mem, max number of branches exceeded, transaction has 6XX status...).<br/>
<br/>
It looks like you need to use a <b>failure_route</b> [1] for your transaction, and perform your error handling when it eventually expires, because no replies are being sent back. You can control the transaction timeout with the timeout variables from the TM module [2].<br/>
<br/>
[1]: <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Routes-1-12#toc3" target="_blank">http://www.opensips.org/Documentation/Script-Routes-1-12#toc3</a><br/>
[2]: <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.12.x/tm.html#id295701" target="_blank">http://www.opensips.org/html/docs/modules/1.12.x/tm.html#id295701</a><br/>
<br/>
Best regards,</tt>

<pre class="moz-signature">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
On 07/15/2014 10:20 PM, Gary Nyquist wrote:</div>

<blockquote>
<div style="font-family: Verdana;font-size: 12.0px;">
<div style="font-family: Verdana;font-size: 12.0px;">
<div style="font-family: Verdana;font-size: 12.0px;">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi,</div>

<div>&nbsp;</div>

<div>Looking for some insight into the t_relay().</div>

<div>I am using the t_relay() to route INVITE to the Callee device (sip client running on a mobile device).</div>

<div>
<div>I was expecting the&nbsp;<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">t_relay() to fail (returning a -ve number), when the sip client is not running on the mobile device.</span></div>

<div><span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">But I find that&nbsp;t_relay() is not failing in this scenario.</span></div>

<div>Is this the normal behavior of&nbsp;<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">t_relay()?</span></div>

<div>&nbsp;</div>
</div>

<div>Thanks<br/>
-Gary</div>
</div>
</div>
</div>
</div>
&nbsp;

<fieldset class="mimeAttachmentHeader">&nbsp;</fieldset>
&nbsp;

<pre>_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="Users@lists.opensips.org" target="_parent">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
&nbsp;

<fieldset class="mimeAttachmentHeader">&nbsp;</fieldset>
&nbsp;

<pre>_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="Users@lists.opensips.org" target="_parent">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><font face="Verdana, sans-serif, Arial, Trebuchet MS" size="3"><span style="font-style: normal; line-height: 20.796875px; white-space: normal;">
</span></font></pre>
</blockquote>
</div>
</div>
</div>
</div></div></body></html>