<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">My understanding is that today there is no channel variable in FS that lets control reject causes to stop bridge iterations over | separated endpoints.</span></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">Am I right or am I wrong?</span></blockquote><div><br></div>
<div>fail_on_single_reject should be working for exactly that purpose. For example I use the following:</div>
<p class=""><span class=""><action </span><span class="">application</span><span class="">=</span><span class="">"set"</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">"continue_on_fail=GATEWAY_DOWN,INVALID_GATEWAY"</span><span class="">/><br></span><span class=""><action </span><span class="">application</span><span class="">=</span><span class="">"set"</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">"fail_on_single_reject=!^^:GATEWAY_DOWN:INVALID_GATEWAY"</span><span class="">/><br></span><span class=""><action </span><span class="">application</span><span class="">=</span><span class="">"set"</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">"hangup_after_bridge=true"</span><span class="">/><br></span><span class=""><action </span><span class="">application</span><span class="">=</span><span class="">"bridge"</span><span class=""> </span><span class="">data</span><span class="">=</span><span class="">"</span>sofia/gateway/gw1/$1|sofia/gateway/gw2/$1|sofia/gateway/gw3/$1<span class="">"</span><span class="">/></span></p><p class=""><span class="">This passes routes via multiple carriers. If the gateway is down/non-existent it will try the next sequential destination(s), but any other failure cause causes the bridge to end without trying the next (</span>fail_on_single_reject). If all the gateways are down it returns to dialplan (continue_on_fail) otherwise it hangs up with the reject cause from the bridge.</p></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 January 2015 at 15:34, Victor Chukalovskiy <span dir="ltr"><<a href="mailto:victor.chukalovskiy@gmail.com" target="_blank">victor.chukalovskiy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>@Avi - Thanks for the feedback. Yes, in
typical use scenarios you let it fail-over using defaults.<br>
However, I'm working on something quite different hence looking
for more controls. <br>
<br>
If anyone could shed more light, would be great.<br>
My understanding is that today there is no channel variable in FS
that lets control reject causes to stop bridge iterations over |
separated endpoints.<br>
Am I right or am I wrong?<br>
<br>
@Vik - I'm using continue_on_fail=true, however believe it's not
relevant for my question.<br>
It controls what happens after bridge is done. I'm looking for
control between multiple endpoints within the same bridge.<br>
<br>
Thanks all!<div><div class="h5"><br>
<br>
<br>
On 15-01-21 08:38 AM, Vik Killa wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">try setting continue_on_fail=true</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jan 21, 2015 at 5:52 AM, Avi
Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I've never been clear on how this works.
<div><br>
<div>However, the most typical case - you get a
USER_BUSY so don't try any more carriers - I've found
to my surprise that other carriers sometimes are able
to complete the call...</div>
<div class="gmail_extra"><span><font color="#888888"><br clear="all">
<div>
<div>
<div dir="ltr">-Avi<br>
</div>
</div>
</div>
</font></span>
<div>
<div>
<br>
<div class="gmail_quote">On Tue, Jan 20, 2015 at
11:16 PM, Victor Chukalovskiy <span dir="ltr"><<a href="mailto:victor.chukalovskiy@gmail.com" target="_blank">victor.chukalovskiy@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<br>
Just discovered that fail_on_single_reject
does not work with "|"<br>
operator...<br>
<br>
Not sure if it was always the case or a recent
"improvement"<br>
<br>
Is there something equivalent that can be used
with sequential bridge,<br>
that is with | operator?<br>
The goal is that if I bridge to<br>
"sofia/gw1/5555555555|sofia/gw2/5555555555 and
I get one of the<br>
rejection codes I expect over gw1 it should
not attemptĀ gw2<br>
<br>
Thx!<br>
-Victor<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>