<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>
<pre>Taken from here: https://www.marc.info/?l=freeswitch-users&amp;m=142212930223048&amp;w=3

&gt; My understanding is that today there is no channel variable in FS that
&gt;&gt; lets control reject causes to stop bridge iterations over &#124; separated
&gt;&gt; endpoints.
&gt;
&gt; Am I right or am I wrong?
&gt;
&gt;
&gt; fail_on_single_reject should be working for exactly that purpose.</pre>

<div>
<pre>&gt; This passes routes via multiple carriers. If the gateway is
&gt; down/non-existent it will try the next sequential destination(s), but any
&gt; other failure cause causes the bridge to end without trying the next (fail_on_single_reject).
&gt; If all the gateways are down it returns to dialplan (continue_on_fail)
&gt; otherwise it hangs up with the reject cause from the bridge.
&gt;
&gt;
Hi Steven,

I believe your explanation is spot on and makes a lot of sense. From a
documentation standpoint I can see why some are confused. Both the wiki and
the source code explicitly mention the AND (i.e. comma) condition being
affected by fail_on_single_reject but not the OR (i.e. pipe) condition.

If there are no objections I&#39;d like to submit this tidbit to be included in
the fail_on_single_reject wiki entry.

-MC
</pre>
</div>
</div>
&nbsp;

<div><b>Sent:</b>&nbsp;Saturday, February 21, 2015 at 12:32 AM

<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>From:</b>&nbsp;&quot;Bote Man&quot; &lt;bote_radio@botecomm.com&gt;<br/>
<b>To:</b>&nbsp;&quot;&#39;FreeSWITCH Users Help&#39;&quot; &lt;freeswitch-users@lists.freeswitch.org&gt;<br/>
<b>Subject:</b>&nbsp;Re: [Freeswitch-users] piped failover doesn&#39;t work in dialplan, but works from console</div>

<div name="quoted-content"><!--p.MsoNormal, li.MsoNormal, div.MsoNormal {
        margin: 0.0in;
        font-size: 12.0pt;
        font-family: "Times New Roman" , serif;
}
h1 {
        margin-right: 0.0in;
        margin-left: 0.0in;
        font-size: 24.0pt;
        font-family: "Times New Roman" , serif;
        font-weight: bold;
}
a:link, span.MsoHyperlink {
        color: blue;
        text-decoration: underline;
}
a:visited, span.MsoHyperlinkFollowed {
        color: purple;
        text-decoration: underline;
}
p {
        margin-right: 0.0in;
        margin-left: 0.0in;
        font-size: 12.0pt;
        font-family: "Times New Roman" , serif;
}
span.EmailStyle18 {
        font-family: Calibri , sans-serif;
        color: rgb(31,73,125);
}
span.Heading1Char {
        font-weight: bold;
}
span.mw-headline {
}
*.MsoChpDefault {
        font-size: 10.0pt;
}
div.WordSection1 {
        page: WordSection1;
}
-->
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11.0pt;font-family: Calibri , sans-serif;color: rgb(31,73,125);">From Confluence:</span></p>

<p class="MsoNormal"><span style="font-size: 11.0pt;font-family: Calibri , sans-serif;color: rgb(31,73,125);"><a href="https://freeswitch.org/confluence/display/FREESWITCH/Variables" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Variables</a></span></p>

<p class="MsoNormal"><span style="font-size: 11.0pt;font-family: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span></p>

<p class="MsoNormal"><b><span style="font-family: Calibri , sans-serif;">&ldquo;fail_on_single_reject</span></b></p>

<p class="MsoNormal"><span style="font-family: Calibri , sans-serif;">This is useful when using the &quot;,&quot; AND operator in the DATA field of a bridge&rdquo;</span></p>

<p class="MsoNormal"><span style="font-family: Calibri , sans-serif;">You are using the pipe &#124; operator to perform sequential hunting, not the comma to perform simultaneous calling. My guess is that fail_on_single_reject only works on simultaneous calls with the &ldquo;bridge&rdquo; app as indicated by the docs. I have not looked at the code, however.</span></p>

<p class="MsoNormal"><span style="font-family: Calibri , sans-serif;">Bote</span></p>

<p class="MsoNormal"><span style="font-size: 11.0pt;font-family: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span></p>

<div>
<div style="border: none;border-top: solid rgb(181,196,223) 1.0pt;padding: 3.0pt 0.0in 0.0in 0.0in;">
<p class="MsoNormal"><b><span style="font-size: 10.0pt;font-family: Tahoma , sans-serif;">From:</span></b><span style="font-size: 10.0pt;font-family: Tahoma , sans-serif;"> Mi Ke<br/>
<b>Sent:</b> Friday, 20 February, 2015 17:06<br/>
<b>Subject:</b> Re: [Freeswitch-users] piped failover doesn&#39;t work in dialplan, but works from console</span></p>
</div>
</div>

<p class="MsoNormal">&nbsp;</p>

<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">freeswitch@internal&gt; version<br/>
FreeSWITCH Version 1.5.15b+git~20150220T192157Z~9a6c29f8f7~64bit (git 9a6c29f 2015-02-20 19:21:57Z 64bit)</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;</span></p>
</div>

<div>
<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">freeswitch@internal&gt; originate {fail_on_single_reject=USER_BUSY}error/NO_ANSWER&#124;error/NO_ROUTE_DESTINATION&#124;error/USER_BUSY&#124;error/SERVICE_UNAVAILABLE 999<br/>
-ERR USER_BUSY</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">is OK</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">now trying on real channels:</span></p>
</div>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">freeswitch@internal&gt; originate <a href="%7bfail_on_single_reject=USER_BUSY%7dsofia/external/1111@1.1.1.1&#124;sofia/external/2222@2.2.2.2" target="_parent">{fail_on_single_reject=USER_BUSY}sofia/external/1111@1.1.1.1&#124;sofia/external/2222@2.2.2.2</a> 999<br/>
-ERR USER_BUSY</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;</span></p>
</div>

<div>
<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">2015-02-20 21:47:19.584431 [DEBUG] switch_ivr_originate.c:3720 Originate Resulted in Error Cause: 17 [USER_BUSY]<br/>
2015-02-20 21:47:19.584431 [NOTICE] switch_channel.c:1055 New Channel <a href="sofia/external/2222@2.2.2.2" target="_parent">sofia/external/2222@2.2.2.2</a> [0b472918-b94a-11e4-b8f3-2ddfb755c79b]</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;</span></p>
</div>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">Thanks / Mike </span></p>

<div style="border: none;border-left: solid rgb(195,217,229) 1.5pt;padding: 0.0in 0.0in 0.0in 8.0pt;margin-left: 7.5pt;margin-top: 7.5pt;margin-right: 3.75pt;margin-bottom: 3.75pt;">
<div style="margin-bottom: 7.5pt;">
<p class="MsoNormal"><b><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">Sent:</span></b><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;Friday, February 20, 2015 at 10:40 PM<br/>
<b>From:</b>&nbsp;&quot;Brian West&quot; &lt;<a href="brian@freeswitch.org" target="_parent">brian@freeswitch.org</a>&gt;<br/>
<b>Subject:</b>&nbsp;Re: [Freeswitch-users] piped failover doesn&#39;t work in dialplan, but works from console</span></p>
</div>

<div>
<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">Did you happen to update your FreeSWITCH code to something more recent?</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp; </span></p>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">On Fri, Feb 20, 2015 at 1:21 PM, Mi Ke &lt;<a>mi.ke@null.net</a>&gt; wrote: </span></p>

<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">Dear Michael,</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">Thank you for your response. I liked your idea so I have removed all channel vars I was assigning before bridge, removed tls and left only USER_BUSY in the single reject list. Still no luck neither from console nor from dialplan:</span></p>
</div>

<div>
<p class="MsoNormal"><span style="font-size: 9.0pt;font-family: Verdana , sans-serif;">&nbsp;</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <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 FreeSWITCH-users@lists.freeswitch.org <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></div>
</div>
</div>
</div>
</div></div></body></html>