<div dir="ltr">Thanks Ken for the response.<div><br></div><div>That's looks good. But how would you do this for multiple destinations and failover carriers. My original scheme works:</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">
<action application="set" data="ignore_early_media=true"/></div><div style="font-family:arial,sans-serif;font-size:13px"><action application="set" data="continue_on_fail=true"/></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><b><action application="set" data="call_timeout=5"/></b> </div><div style="font-family:arial,sans-serif;font-size:13px">
<action application="bridge" data="user/1001|user/1001"/></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap">                </span></div><div style="font-family:arial,sans-serif;font-size:13px">
<b><action application="set" data="call_timeout=20"/></b> </div><div style="font-family:arial,sans-serif;font-size:13px"><action application="bridge" data="user/1002|user/1002"/> </div>
</div><div><br></div><div><br></div><div>BUT using <span style="font-family:Monaco,'Courier New';font-size:15px">{leg_timeout=60} as you have does means there are </span><br></div><div><div class="gmail_extra"><br>
</div><div class="gmail_extra"><div style="font-size:13px;font-family:arial,sans-serif"><action application="set" data="ignore_early_media=true"/></div><div style="font-size:13px;font-family:arial,sans-serif">
<action application="set" data="continue_on_fail=true"/></div><div><br></div></div><div class="gmail_extra"><div style="font-family:arial,sans-serif;font-size:13px"><action application="bridge" data="<b>{leg_timeout=5}</b>user/1001|user/1001"/><br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap">        </span></div><div style="font-family:arial,sans-serif;font-size:13px"><action application="bridge" data="<b>{leg_timeout=20</b>}user/1002|user/1002"/> </div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">will cause it to ring twice. What am I missing?</div><br><br><div class="gmail_quote">On Thu, Sep 4, 2014 at 5:46 PM, Ken Rice <span dir="ltr"><<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>></span> wrote:<br>
<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">
<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>
<action application=”set” data=”continue_on_fail=$${conditions_to_continue_on}”/><br>
<action application=”set” data=”hangup_after_bridge=true”/><br>
<action application="bridge" data="{leg_timeout=60}carrier1/1001”/><br>
<action application="bridge" data=" carrier2/1001"/><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, "Phillip Jones" <<a href="http://pjintheusa@gmail.com" target="_blank">pjintheusa@gmail.com</a>> 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>
<action application="bridge" data="{leg_timeout=60}carrier1/1001|carrier2/1001"/> <------ 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><action application="set" data="call_timeout=5"/></b> <br>
<action application="bridge" data="carrier1/1001|carrier2/1001"/> <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 <<a href="http://brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>> wrote:<br>
</span></font><blockquote><font face="Monaco, Courier New"><span style="font-size:11pt">Don'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 <<a href="http://pjintheusa@gmail.com" target="_blank">pjintheusa@gmail.com</a>> 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>
<extension name="treatment_followme_route"><br>
<condition field="${Treatment}" expression="^SEQUENTIAL$"/><br>
<condition field="${ForwardingNumber}" expression="^100"><br>
<action application="set" data="ignore_early_media=true"/><br>
<action application="set" data="continue_on_fail=true"/><br>
<br>
<b><action application="set" data="call_timeout=5"/></b> <br>
<action application="bridge" data="user/1001|user/1001"/><br>
<b><action application="set" data="call_timeout=20"/></b> <br>
<action application="bridge" data="user/1002|user/1002"/> <br>
...<br>
</condition><br>
</extension><br>
<br>
VERUS:<br>
<br>
<extension name="treatment_followme_route"><br>
<condition field="${Treatment}" expression="^SEQUENTIAL$"/><br>
<condition field="${ForwardingNumber}" expression="^100"><br>
<action application="set" data="ignore_early_media=true"/><br>
<action application="set" data="continue_on_fail=true"/><br>
<br>
<action application="bridge" data="<b>{call_timeout=5}</b>user/1001|user/1001"/><br>
<action application="bridge" data="<b>{call_timeout=20</b>}user/1002|user/1002"/> <br>
..<br>
</condition><br>
</extension><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 <action application="set" data="call_timeout=5"/> not?<br>
<br>
<br>
<br>
<br>
Thanks<br>
<br>
<br>
Phil<br></span></font></blockquote></blockquote></div></div></blockquote></div></blockquote></div></div></div></div>