<div dir="ltr">what'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:'Courier New'"><span lang="EN"><action application="set" data="continue_on_fail=true"/></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:'Courier New'"><span lang="EN"><action application="set" data="hangup_after_bridge=true"/></span></pre>
<p class="" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"><action application="bridge" data="sofia/gateway/primary/dialstring "/></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:'Times New Roman',serif"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"><action application="bridge" data="sofia/gateway/secondary/dialstring"/></span></p>
<p class="" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif"><span lang="EN" style="font-size:10pt;font-family:'Courier New'"><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"><<a href="mailto:ssinyagin@yahoo.com" target="_blank">ssinyagin@yahoo.com</a>></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 "sofia_contact" which allows you to route the calls differently if the user is not logged in.<br><br>If there was a function like "gateway_status", the dialplan could look like something like this:<br>
<br> <condition field="${sofia_gw_status(primary}" expression="^REGED" break="on-true"><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></condition></span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial,helvetica,sans-serif"><span><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 <<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>><br>
<b><span style="font-weight:bold">To:</span></b> 'FreeSWITCH Users Help'
<<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>> <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:"Courier New"" lang="EN"> </span></div><div><span style="font-size:10.0pt;font-family:"Courier New"" 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:"Courier New"" lang="EN"> </span></div><div><span style="font-size:10.0pt;font-family:"Courier New"" lang="EN"><action application="bridge" data="sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"/></span></div>
<div><span style="font-size:10.0pt;font-family:"Courier New"" lang="EN"> </span></div><div><span style="font-size:10.0pt;font-family:"Courier New"" lang="EN">Or just adding to bridges?</span></div><div>
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></div><pre><span lang="EN"><action application="set" data="continue_on_fail=true"/></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></span></pre>
<div><span style="font-size:10.0pt;font-family:"Courier New"" lang="EN"><action application="bridge" data="sofia/gateway/primary/dialstring "/></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></span></div>
<div><span style="font-size:10.0pt;font-family:"Courier New"" lang="EN"><action application="bridge"
data="sofia/gateway/secondary/dialstring"/></span></div><div><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></div><div><span style="font-size:10.0pt;font-family:"Courier New"" 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>