<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Thanks Bogdan & Liviu,</div>
<div> </div>
<div>I have implemented the "failure_route" technique suggested by Liviu.<br/>
It is working fine.</div>
<div> </div>
<div>Will try with t_relay("0x2") and let this forum know how it works. <br/>
I think it should fail and return -6 (- generic send failed), because the transport of the RURI (Callee Device) is TCP.<br/>
But not sure if "tcp_async=1" affects it... Will try with "tcp_async=0" also.</div>
<div> </div>
<div>Need little more info on following timeout parameters:<br/>
$T_fr_timeout<br/>
$T_fr_inv_timeout</div>
<div>Is there a way to determine (inside the failure_route) which 'timeout' occurred?</div>
<div> </div>
<div>Thanks<br/>
-Gary</div>
</div>
<div>
<div> </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> Wednesday, July 16, 2014 at 8:37 AM<br/>
<b>From:</b> "Bogdan-Andrei Iancu" <bogdan@opensips.org><br/>
<b>To:</b> "OpenSIPS users mailling list" <users@lists.opensips.org>, "Gary Nyquist" <gn62@gmx.us><br/>
<b>Subject:</b> 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/>
<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 "fail" 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> </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 <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 t_relay() is not failing in this scenario.</span></div>
<div>Is this the normal behavior of <span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">t_relay()?</span></div>
<div> </div>
</div>
<div>Thanks<br/>
-Gary</div>
</div>
</div>
</div>
</div>
<fieldset class="mimeAttachmentHeader"> </fieldset>
<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>
<fieldset class="mimeAttachmentHeader"> </fieldset>
<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>