<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">it's probably not much difference, but you make the routing decisions based on the gateway status, instead of call status. <br><br><br><br><div><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" size="2"> <b><span style="font-weight:bold;">From:</span></b> Andrew Cassidy <andrew@cassidywebservices.co.uk><br> <b><span style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, September 18, 2013 11:42 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] Bridge Failover<br> </font> </div> <div
class="y_msg_container"><br><div id="yiv7895175442"><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;"><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;"><span lang="EN"><action application="set" data="hangup_after_bridge=true"/></span></pre>
<div class="yiv7895175442" style="margin:0in 0in 0.0001pt;font-size:12pt;"><span style="font-size:10pt;" lang="EN"><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></div>
<div class="yiv7895175442" style="margin:0in 0in 0.0001pt;font-size:12pt;"><span style="font-size:10pt;" lang="EN"><action application="bridge" data="sofia/gateway/secondary/dialstring"/></span></div>
<div class="yiv7895175442" style="margin:0in 0in 0.0001pt;font-size:12pt;"><span style="font-size:10pt;" lang="EN"><br></span></div><div class="yiv7895175442" style="margin:0in 0in 0.0001pt;">
<font face="Courier New">That should make it stop after the first successful one. </font></div></div></div><div class="yiv7895175442gmail_extra"><br><br><div class="yiv7895175442gmail_quote">On 18 September 2013 07:02, Stanislav Sinyagin <span dir="ltr"><<a rel="nofollow" ymailto="mailto:ssinyagin@yahoo.com" target="_blank" href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv7895175442gmail_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 rel="nofollow" ymailto="mailto:andretodd@verizon.net" target="_blank" href="mailto:andretodd@verizon.net">andretodd@verizon.net</a>><br>
<b><span style="font-weight:bold;">To:</span></b> 'FreeSWITCH Users Help'
<<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">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="yiv7895175442h5"><br><div><div><div><div><div><span style="font-size:10.0pt;" lang="EN"> </span></div><div><span style="font-size:10.0pt;" lang="EN">HI, is there a difference in fail over for a bridge from this:</span></div>
<div><span style="font-size:10.0pt;" lang="EN"> </span></div><div><span style="font-size:10.0pt;" lang="EN"><action application="bridge" data="sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"/></span></div>
<div><span style="font-size:10.0pt;" lang="EN"> </span></div><div><span style="font-size:10.0pt;" lang="EN">Or just adding to bridges?</span></div><div>
<span style="font-size:11.0pt;color:#1f497d;"> </span></div><pre><span lang="EN"><action application="set" data="continue_on_fail=true"/></span><span style="font-size:11.0pt;color:#1f497d;"></span></pre>
<div><span style="font-size:10.0pt;" lang="EN"><action application="bridge" data="sofia/gateway/primary/dialstring "/></span><span style="font-size:11.0pt;color:#1f497d;"></span></div>
<div><span style="font-size:10.0pt;" lang="EN"><action application="bridge"
data="sofia/gateway/secondary/dialstring"/></span></div><div><span style="font-size:11.0pt;color:#1f497d;"> </span></div><div><span style="font-size:10.0pt;" lang="EN">What is the best way for failover?</span></div>
</div></div></div></div><br></div></div><div class="yiv7895175442im">_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a rel="nofollow" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a rel="nofollow" target="_blank" href="http://www.cudatel.com/">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/">http://wiki.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com</a><br>
<br>FreeSWITCH-users mailing list<br><a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<br><br></div></div> </div> </div> </div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a rel="nofollow" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a rel="nofollow" target="_blank" href="http://www.cudatel.com/">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/">http://wiki.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">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><br></div><div><br><div>
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif;"><a rel="nofollow" ymailto="mailto:info@cassidywebservices.co.uk" target="_blank" href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif;">T</a> </b>03300 100 960
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif;"><a rel="nofollow" ymailto="mailto:info@cassidywebservices.co.uk" target="_blank" href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif;">F</a> </b>03300 100 961</div>
<div><b style="text-decoration:none;font-family:sans-serif;"><a rel="nofollow" ymailto="mailto:info@cassidywebservices.co.uk" target="_blank" href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif;">E</a> </b><a rel="nofollow" ymailto="mailto:andrew@cassidywebservices.co.uk" target="_blank" href="mailto:andrew@cassidywebservices.co.uk">andrew@cassidywebservices.co.uk</a></div>
<div><b style="text-decoration:none;font-family:sans-serif;"><a rel="nofollow" ymailto="mailto:info@cassidywebservices.co.uk" target="_blank" href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif;">W</a> </b><a rel="nofollow" target="_blank" href="http://www.cassidywebservices.co.uk/">www.cassidywebservices.co.uk</a></div>
</div></div></div>
</div></div><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a ymailto="mailto:consulting@freeswitch.org" 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 ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org"
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><br></div> </div> </div> </div></body></html>