<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Hi,
<div><br>
</div>
<div>In addition , there is a function in tm that helps to understand  branch timeout reason</div>
<div><br>
</div>
<div><a href="https://www.kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.f.t_branch_replied">https://www.kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.f.t_branch_replied</a><br>
<br>
<div>Yasin Caner</div>
<div><br>
Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> şunları yazdı (2 Mar 2019 02:23):<br>
<br>
</div>
<blockquote type="cite">
<div><span>Hi,</span><br>
<span></span><br>
<span>Reinvites are in-dialog requests; they would only be sent within the</span><br>
<span>context of an established dialog (2xx response, end-to-end ACK, the</span><br>
<span>whole works).</span><br>
<span></span><br>
<span>Perhaps what you are referring to is not reinvites but retransmissions</span><br>
<span>of the initial INVITE?</span><br>
<span></span><br>
<span>If so, have a look at this option:</span><br>
<span></span><br>
<span><a href="https://kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.p.cancel_b_method">https://kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.p.cancel_b_method</a></span><br>
<span></span><br>
<span>in concert with something like this:</span><br>
<span></span><br>
<span>  failure_route[...] {</span><br>
<span>      if(t_is_canceled())</span><br>
<span>          exit;</span><br>
<span></span><br>
<span>      # The scenario you're after.</span><br>
<span></span><br>
<span>      if(t_branch_timeout()) {</span><br>
<span>          t_reply("503", "Service Unavailable");</span><br>
<span>      exit;</span><br>
<span>      }</span><br>
<span>  }</span><br>
<span></span><br>
<span>-- Alex</span><br>
<span></span><br>
<span>On Fri, Mar 01, 2019 at 08:23:11AM -0600, JR Richardson wrote:</span><br>
<span></span><br>
<blockquote type="cite"><span>Hi All,</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>My mind is not right on this one, need a pointer. Here is the simple scenario:</span><br>
</blockquote>
<blockquote type="cite"><span>Carrier><kamailio proxy><end device</span><br>
</blockquote>
<blockquote type="cite"><span>The end device is a static IP, the proxy dips database and knows where</span><br>
</blockquote>
<blockquote type="cite"><span>to send numbers destined for the end device, but if there is no</span><br>
</blockquote>
<blockquote type="cite"><span>response from the end device (it's off-line), how do I time-out the</span><br>
</blockquote>
<blockquote type="cite"><span>transaction and send a 503 'Service Unavailable' back to the first leg</span><br>
</blockquote>
<blockquote type="cite"><span>for the carrier to stop re-invites?</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>I assume I need a new [FAIL_TWO] route that handles this event.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>Thanks.</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>JR</span><br>
</blockquote>
<blockquote type="cite"><span>-- </span><br>
</blockquote>
<blockquote type="cite"><span>JR Richardson</span><br>
</blockquote>
<blockquote type="cite"><span>Engineering for the Masses</span><br>
</blockquote>
<blockquote type="cite"><span>Chasing the Azeotrope</span><br>
</blockquote>
<blockquote type="cite"><span></span><br>
</blockquote>
<blockquote type="cite"><span>_______________________________________________</span><br>
</blockquote>
<blockquote type="cite"><span>Kamailio (SER) - Users Mailing List</span><br>
</blockquote>
<blockquote type="cite"><span><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a></span><br>
</blockquote>
<blockquote type="cite"><span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
</blockquote>
<span></span><br>
<span>-- </span><br>
<span>Alex Balashov | Principal | Evariste Systems LLC</span><br>
<span></span><br>
<span>Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) </span><br>
<span>Web: <a href="http://www.evaristesys.com/">http://www.evaristesys.com/</a>,
<a href="http://www.csrpswitch.com/">http://www.csrpswitch.com/</a></span><br>
<span></span><br>
<span>_______________________________________________</span><br>
<span>Kamailio (SER) - Users Mailing List</span><br>
<span><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a></span><br>
<span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
</div>
</blockquote>
</div>
</body>
</html>