<p dir="ltr">Bogdan,</p>
<p dir="ltr">Thanks for the informative reply. </p>
<p dir="ltr">What I really want to solve is a problem I encounter when the first GW doesnt respond after a defined timeout then Opensips does failover to next GW. A few seconds after the call is routed to second GW, the first GW responds with 200 OK, which may cause problems. It seems that the first GW has a slow response time.</p>
<p dir="ltr">The solution I am thinking of to prevent this is to send a cancel to the first GW before doing failover to next gateway. Does this make sense or is there a better solution?</p>
<p dir="ltr">Thanks.</p>
<p dir="ltr">-Ronald</p>
<div class="gmail_quote">On Jul 4, 2013 11:58 PM, "Bogdan-Andrei Iancu" <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div text="#000000" bgcolor="#ffffff">
<tt>Hello Ronald,<br>
<br>
When you hit the failure route, there is no ongoing branch left
(doesn't matter how many you previously created) - so you should
not worry about this.<br>
<br>
By SIP definition, a transaction fails (and OpenSIPS gets into
failure route) only when all branches failed.<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<br>
On 07/03/2013 10:43 PM, Ronald Cepres wrote:
<blockquote type="cite">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>Is there a way I can cancel a pending branch before doing a
fail-over to next gateway (due to timeout from previous
gateway)? This way I can make sure that the call to the
previous gateway will not go through anymore after fail-over
to the next gateway, thus preventing us "double-charged"
situations if the previous gateway and the new gateway both
answered the call. </div>
<div><br>
</div>
<div>Thanks in advance.</div>
<div>
<div><br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr"><br>
<div>Regards,</div>
<div><br>
</div>
<div>Ronald</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
<pre>
<fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</blockquote></div>