<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body 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 !important">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 class="x_gmail_default" style="margin:0px; font-size:14px; font-family:"trebuchet ms",sans-serif; background-color:rgb(255,255,255)">For example:</span>
<div class="x_gmail_default" 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!important"></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 tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Gregor Nanger <gregor@infomedia.si><br>
<b>Sent:</b> 16 December 2021 17:45<br>
<b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><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 class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif">Guys, I need some advice.</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div class="x_gmail_default" 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 class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div class="x_gmail_default" 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 class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif">For example:</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif">1. continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif">2. originate sofia/gateway/provider1|sofia/gateway/provider2 19005551212 XML default</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif">Any advice would be appreciated.</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif"><br>
</div>
<div class="x_gmail_default" style="font-family:"trebuchet ms",sans-serif">Br, Gregor</div>
<div dir="ltr" class="x_gmail_signature"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>