<div dir="ltr">what&#39;s wrong with just setting hangup_after_bridge for the second example:<div><br></div><div><pre style="white-space:pre-wrap;margin:0in 0in 0.0001pt;font-size:13px;font-family:&#39;Courier New&#39;"><span lang="EN">&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;</span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></pre>
<pre style="white-space:pre-wrap;margin:0in 0in 0.0001pt;font-size:13px;font-family:&#39;Courier New&#39;"><span lang="EN">&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;</span></pre>
<p class="" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"><span lang="EN" style="font-size:10pt;font-family:&#39;Courier New&#39;">&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/primary/dialstring &quot;/&gt;</span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"><span lang="EN" style="font-size:10pt;font-family:&#39;Courier New&#39;">&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/secondary/dialstring&quot;/&gt;</span></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:&#39;Times New Roman&#39;,serif"><span lang="EN" style="font-size:10pt;font-family:&#39;Courier New&#39;"><br></span></p><p class="" style="margin:0in 0in 0.0001pt">
<font face="Courier New">That should make it stop after the first successful one. </font></p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 September 2013 07:02, Stanislav Sinyagin <span dir="ltr">&lt;<a href="mailto:ssinyagin@yahoo.com" target="_blank">ssinyagin@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif">actually a cool feature would be to have a function that returns the current status of a gateway.<br>
<br>There is a function &quot;sofia_contact&quot; which allows you to route the calls differently if the user is not logged in.<br><br>If there was a function like &quot;gateway_status&quot;, the dialplan could look like something like this:<br>
<br> &lt;condition field=&quot;${sofia_gw_status(primary}&quot; expression=&quot;^REGED&quot; break=&quot;on-true&quot;&gt;<br><div><span>... do something...</span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<span>&lt;/condition&gt;</span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial,helvetica,sans-serif"><span>&lt;condition  alternative route
 ...</span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial,helvetica,sans-serif"><br><span></span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<br><span></span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial,helvetica,sans-serif"><span><br></span></div><div><br></div>  <div style="font-family:arial,helvetica,sans-serif;font-size:10pt">
 <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <hr size="1">  <font face="Arial"> <b><span style="font-weight:bold">From:</span></b> Andre &lt;<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>&gt;<br>
 <b><span style="font-weight:bold">To:</span></b> &#39;FreeSWITCH Users Help&#39;
 &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt; <br> <b><span style="font-weight:bold">Sent:</span></b> Wednesday, September 18, 2013 3:30 AM<br> <b><span style="font-weight:bold">Subject:</span></b> [Freeswitch-users] Bridge Failover<br>
 </font> </div> <div><div><div class="h5"><br><div><div><div><div><div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN"> </span></div><div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN">HI, is there a difference in fail over for a bridge from this:</span></div>
<div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN">  </span></div><div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN">&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring&quot;/&gt;</span></div>
<div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN">  </span></div><div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN">Or just adding to bridges?</span></div><div>
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">  </span></div><pre><span lang="EN">&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"></span></pre>
<div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN">&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/primary/dialstring &quot;/&gt;</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"></span></div>
<div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN">&lt;action application=&quot;bridge&quot;
 data=&quot;sofia/gateway/secondary/dialstring&quot;/&gt;</span></div><div><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">  </span></div><div><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;" lang="EN">What is the best way for failover?</span></div>
</div></div></div></div><br></div></div><div class="im">_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto: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>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.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://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.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" 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>
<br><br></div></div> </div> </div>  </div></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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="http://c1170247.r47.cf3.rackcdn.com/emailsig.png"><br></div><div><br><div>
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">T</a> </b>03300 100 960 
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">F</a> </b>03300 100 961</div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">E</a> </b><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a></div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">W</a> </b><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a></div>
</div></div></div>
</div>