<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">It works! It looks that pipe | obey continue_on_fail.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Nevertheless, in the end, I didn't specify this variable as it looks the pipe has all logic already implemented. 👍👍</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 17 Dec 2021 at 11:03, Shaun Stokes <shaun@sysconfig.cloud> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
You may want to specify <span style="background-color:rgb(255,255,255);display:inline">
fail_on_single_reject.</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline">
<div style="margin:0px;font-size:12pt;background-color:rgb(255,255,255)"><span style="margin:0px;font-size:14px;font-family:"trebuchet ms",sans-serif;background-color:rgb(255,255,255)">For example:</span>
<div style="margin:0px;font-size:14px;font-family:"trebuchet ms",sans-serif;background-color:rgb(255,255,255)">
<span style="margin:0px">{continue_on_fail=<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255);display:inline">^^:</span>NORMAL_TEMPORARY_FAILURE:NO_ROUTE_DESTINATION,<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255);display:inline">fail_on_single_reject=^^:CALL_REJECTED:NORMAL_CLEARING:USER_BUSY</span>}</span><span style="margin:0px">[</span><span style="margin:0px;font-size:16px;font-family:Calibri,Arial,Helvetica,sans-serif">leg_timeout=15</span><span style="margin:0px">]</span>originate
 sofia/gateway/provider1|<span style="margin:0px">[</span><span style="margin:0px;font-size:16px;font-family:Calibri,Arial,Helvetica,sans-serif">leg_timeout=15</span><span style="margin:0px">]</span>sofia/gateway/provider2 19005551212 XML default<span style="margin:0px"><span style="margin:0px;background-color:rgb(255,255,255);display:inline"></span></span></div>
</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255,255,255)"><br>
</div>
<span style="margin:0px;font-size:12pt;background-color:rgb(255,255,255)">Shaun</span></span></div>
<div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-3778709462997057671divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf of Gregor Nanger <<a href="mailto:gregor@infomedia.si" target="_blank">gregor@infomedia.si</a>><br>
<b>Sent:</b> 16 December 2021 22:21<br>
<b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Subject:</b> Re: [Freeswitch-users] Originate with failover</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div style="font-family:"trebuchet ms",sans-serif">Thank you Shaun.</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif">Guess if the first gateway will respond with <span style="color:rgb(51,51,51);font-family:"pingfang SC","helvetica neue",arial,"hiragino sans gb","microsoft yahei ui","microsoft yahei",simsun,sans-serif;font-size:14px;white-space:pre-wrap">NORMAL_CLEARING
 or </span><span style="color:rgb(51,51,51);font-family:"pingfang SC","helvetica neue",arial,"hiragino sans gb","microsoft yahei ui","microsoft yahei",simsun,sans-serif;font-size:14px;white-space:pre-wrap">USER_BUSY, call will not go to the next gateway?</span></div>
<div style="font-family:"trebuchet ms",sans-serif"><span style="color:rgb(51,51,51);font-family:"pingfang SC","helvetica neue",arial,"hiragino sans gb","microsoft yahei ui","microsoft yahei",simsun,sans-serif;font-size:14px;white-space:pre-wrap"><br>
</span></div>
<div style="font-family:"trebuchet ms",sans-serif"><span style="color:rgb(51,51,51);font-family:"pingfang SC","helvetica neue",arial,"hiragino sans gb","microsoft yahei ui","microsoft yahei",simsun,sans-serif;font-size:14px;white-space:pre-wrap">Br,
 Gregor</span></div>
</div>
</div>
</div>
</div>
<br>
<div>
<div dir="ltr">On Thu, 16 Dec 2021 at 21:27, Shaun Stokes <shaun@sysconfig.cloud> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Can't confirm if originate will work with pipe (never tried it), you can always test it, but I don't think <span style="font-family:"trebuchet ms",sans-serif;font-size:14px;background-color:rgb(255,255,255);display:inline">continue_on_fail should be necessary.</span>
  When using pipe with gateways, you probably want to add leg_timeout, we've had issues with calls getting stuck on a down gateway in the past, leg_timeout ensures the call fails over after the specified time if there's no response. Some mobiles take a while
 to respond with ringing but 15s should be ample.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;font-size:14px;font-family:"trebuchet ms",sans-serif;background-color:rgb(255,255,255)">For example:</span>
<div style="margin:0px;font-size:14px;font-family:"trebuchet ms",sans-serif;background-color:rgb(255,255,255)">
<span style="font-family:"trebuchet ms",sans-serif;font-size:14px">{continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION}</span><span style="font-family:"trebuchet ms",sans-serif;font-size:14px">[</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">leg_timeout=15</span><span style="font-family:"trebuchet ms",sans-serif;font-size:14px">]</span>originate
 sofia/gateway/provider1|<span style="margin:0px">[</span><span style="margin:0px;font-size:16px;font-family:Calibri,Arial,Helvetica,sans-serif">leg_timeout=15</span><span style="margin:0px">]</span>sofia/gateway/provider2 19005551212 XML default<span style="font-family:"trebuchet ms",sans-serif;font-size:14px"><span style="background-color:rgb(255,255,255);display:inline"></span></span></div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Shaun</div>
<div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-3778709462997057671x_gmail-m_-3402587205835619882divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>>
 on behalf of Gregor Nanger <<a href="mailto:gregor@infomedia.si" target="_blank">gregor@infomedia.si</a>><br>
<b>Sent:</b> 16 December 2021 17:45<br>
<b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Subject:</b> [Freeswitch-users] Originate with failover</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div style="font-family:"trebuchet ms",sans-serif">Guys, I need some advice.</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif">I would like to make an originate to provider and if call fails, proceed to second provider.</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif">For this, I can use pipe |. But will pipe obey what I set in continue_on_fail?</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif">For example:</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif">1. continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION</div>
<div style="font-family:"trebuchet ms",sans-serif">2. originate sofia/gateway/provider1|sofia/gateway/provider2 19005551212 XML default</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif">Any advice would be appreciated.</div>
<div style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div style="font-family:"trebuchet ms",sans-serif">Br, Gregor</div>
<div dir="ltr"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
</div>
<br clear="all">
<div><br>
</div>
<div dir="ltr"></div>
</div>
</div>
</div>
</div>

_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div><div dir="ltr" class="gmail_signature"></div></div>