<div dir="ltr">You can also define what causes connstiute a failure:  







<p class="">failure_causes=<span class="">USER_BUSY</span>,CALL_REJECTED</p></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 4, 2014 at 4:46 PM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<font face="Monaco, Courier New"><span style="font-size:11pt">You should probably be doing this differently if this is calling out to carriers...<br>
<br>
I would do something more along this lines<br>
&lt;action application=”set” data=”continue_on_fail=$${conditions_to_continue_on}”/&gt;<br>
&lt;action application=”set” data=”hangup_after_bridge=true”/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;{leg_timeout=60}carrier1/1001”/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot; carrier2/1001&quot;/&gt;<br>
<br>
<br>
This will prevent you from accidently ringing the called party twice, and it will allow you to choose what conditions you actually want to fail over on, not just try it, then try it again anyway...<br>
<br>
See confluence for full continue_on_fail usage<div><div class="h5"><br>
<br>
<br>
On 9/4/14 4:38 PM, &quot;Phillip Jones&quot; &lt;<a href="http://pjintheusa@gmail.com" target="_blank">pjintheusa@gmail.com</a>&gt; wrote:<br>
<br>
</div></div></span></font><blockquote><div><div class="h5"><font face="Monaco, Courier New"><span style="font-size:11pt">Hi Brian,<br>
<br>
I appreciate the response. The issue is, that in a carrier failover situation the user is called twice if I use </span></font><font><font face="Arial"><span style="font-size:10pt">{leg_timeout=60} in the dial string.<br>

<br>
&lt;action application=&quot;bridge&quot; data=&quot;{leg_timeout=60}carrier1/1001|carrier2/1001&quot;/&gt; &lt;------ rings 1001 using carrier 1 and carrier 2<br>
<br>
</span></font></font><font face="Arial"><span style="font-size:11pt">The following however calls 1001 once. It works as expected and desired.<br>
</span></font><span style="font-size:11pt"><font face="Monaco, Courier New"><br>
</font></span><font><font face="Arial"><span style="font-size:10pt"><b>&lt;action application=&quot;set&quot; data=&quot;call_timeout=5&quot;/&gt;</b> <br>
&lt;action application=&quot;bridge&quot; data=&quot;carrier1/1001|carrier2/1001&quot;/&gt;  <br>
</span></font></font><font face="Monaco, Courier New"><span style="font-size:11pt"><br>
Why would </span></font><font><font face="Arial"><span style="font-size:10pt">{leg_timeout=60} cause this?<br>
</span></font></font><font face="Monaco, Courier New"><span style="font-size:11pt"><br>
<br>
On Thu, Sep 4, 2014 at 5:03 PM, Brian West &lt;<a href="http://brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt; wrote:<br>
</span></font><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">Don&#39;t use call_timeout, use leg_timeout instead... like [leg_timeout=5]user/1000,  You can also pair this with leg_delay_start to have a single string that will just add additional calls to the current bridge action as time goes on.<br>

<br>
{leg_timeout=60}user/1015,[leg_delay_start=10]user/1016,[leg_delay_start=15]user/1017,[leg_delay_start=20]user/1018<br>
<br>
This will start ringing 1015 immediately, then start 1016 10 seconds in, 1017 15 seconds in, 1018 20 seconds in.  While not dropping any of the calls that are already ringing allowing you to escalate the call to additional people the longer it sits.<br>

<br>
<br>
On Thu, Sep 4, 2014 at 3:45 PM, Phillip Jones &lt;<a href="http://pjintheusa@gmail.com" target="_blank">pjintheusa@gmail.com</a>&gt; wrote:<br>
</span></font><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">Hi there,<br>
<br>
I am testing carrier failover via the dialplan. <br>
<br>
Can anyone tell why me the following two dial plans act differently? In my mind they are the same so I am flummoxed.<br>
<br>
 <br>
&lt;extension name=&quot;treatment_followme_route&quot;&gt;<br>
     &lt;condition field=&quot;${Treatment}&quot; expression=&quot;^SEQUENTIAL$&quot;/&gt;<br>
 &lt;condition field=&quot;${ForwardingNumber}&quot; expression=&quot;^100&quot;&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;ignore_early_media=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>
<br>
<b>&lt;action application=&quot;set&quot; data=&quot;call_timeout=5&quot;/&gt;</b> <br>
&lt;action application=&quot;bridge&quot; data=&quot;user/1001|user/1001&quot;/&gt;<br>
<b>&lt;action application=&quot;set&quot; data=&quot;call_timeout=20&quot;/&gt;</b> <br>
&lt;action application=&quot;bridge&quot; data=&quot;user/1002|user/1002&quot;/&gt; <br>
...<br>
      &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
VERUS:<br>
<br>
&lt;extension name=&quot;treatment_followme_route&quot;&gt;<br>
     &lt;condition field=&quot;${Treatment}&quot; expression=&quot;^SEQUENTIAL$&quot;/&gt;<br>
 &lt;condition field=&quot;${ForwardingNumber}&quot; expression=&quot;^100&quot;&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;ignore_early_media=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>
<br>
&lt;action application=&quot;bridge&quot; data=&quot;<b>{call_timeout=5}</b>user/1001|user/1001&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;<b>{call_timeout=20</b>}user/1002|user/1002&quot;/&gt; <br>
..<br>
      &lt;/condition&gt;<br>
    &lt;/extension&gt;<br>
<br>
<br>
First dial plan will dial user 1001 <b>once</b> followed by 1002 <b>once </b>- which is correct for my purposes<br>
<br>
Second will dial user 1001 <b>twice </b>followed by 1002 <b>twice<br>
</b><br>
Why would {call_timeout=15} change the nature of that bridge and &lt;action application=&quot;set&quot; data=&quot;call_timeout=5&quot;/&gt; not?<br>
<br>
<br>
<br>
<br>
Thanks<br>
<br>
<br>
Phil<br>
<br>
<br>
</span></font></blockquote></blockquote></div></div><font face="Monaco, Courier New"><span style="font-size:11pt"><br>
<hr align="CENTER" size="3" width="95%"></span></font><div class=""><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">_________________________________________________________________________<br>

Professional FreeSWITCH Consulting Services: <br>
<a href="http://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-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="http://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>
</span></font></font></div></blockquote><span class="HOEnZb"><font color="#888888"><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt"><br>
</span></font></font><font face="Monaco, Courier New"><span style="font-size:11pt">-- <br>
Ken<br>
<font color="#0000FF"><u><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
</u></font><a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
Twitter: @FreeSWITCH<br>
<br>
</span></font>
</font></span></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-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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><br clear="all"><div><br></div>-- <br><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://bkw.org/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br>
<a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div>
</div>