<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">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>&nbsp;&lt;condition field="${sofia_gw_status(primary}" expression="^REGED" break="on-true"&gt;<br><div><span>... do something...</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>&lt;/condition&gt;</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>&lt;condition&nbsp; alternative route
 ...</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><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> Andre &lt;andretodd@verizon.net&gt;<br> <b><span style="font-weight: bold;">To:</span></b> 'FreeSWITCH Users Help'
 &lt;freeswitch-users@lists.freeswitch.org&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 class="y_msg_container"><br><div id="yiv8430263493"><style><!--
#yiv8430263493  
 _filtered #yiv8430263493 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv8430263493 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
#yiv8430263493  
#yiv8430263493 p.yiv8430263493MsoNormal, #yiv8430263493 li.yiv8430263493MsoNormal, #yiv8430263493 div.yiv8430263493MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv8430263493 a:link, #yiv8430263493 span.yiv8430263493MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv8430263493 a:visited, #yiv8430263493 span.yiv8430263493MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv8430263493 pre
        {margin:0in;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
#yiv8430263493 span.yiv8430263493hoenzb
        {}
#yiv8430263493 span.yiv8430263493EmailStyle18
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv8430263493 span.yiv8430263493HTMLPreformattedChar
        {font-family:"Courier New";}
#yiv8430263493 .yiv8430263493MsoChpDefault
        {font-family:"Calibri", "sans-serif";}
 _filtered #yiv8430263493 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv8430263493 div.yiv8430263493WordSection1
        {}
--></style><div><div class="yiv8430263493WordSection1"><div><div class="yiv8430263493MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;" lang="EN">&nbsp;</span></div><div class="yiv8430263493MsoNormal"><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 class="yiv8430263493MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;" lang="EN"> &nbsp;</span></div><div class="yiv8430263493MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;" lang="EN">&lt;action application="bridge" data="sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"/&gt;</span></div><div class="yiv8430263493MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;" lang="EN"> &nbsp;</span></div><div class="yiv8430263493MsoNormal"><span
 style="font-size:10.0pt;font-family:&quot;Courier New&quot;;" lang="EN">Or just adding to bridges?</span></div><div class="yiv8430263493MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;, &quot;sans-serif&quot;;color:#1F497D;"> &nbsp;</span></div><pre><span lang="EN">&lt;action application="set" data="continue_on_fail=true"/&gt;</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;, &quot;sans-serif&quot;;color:#1F497D;"></span></pre><div class="yiv8430263493MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;" lang="EN">&lt;action application="bridge" data="sofia/gateway/primary/dialstring "/&gt;</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;, &quot;sans-serif&quot;;color:#1F497D;"></span></div><div class="yiv8430263493MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;" lang="EN">&lt;action application="bridge"
 data="sofia/gateway/secondary/dialstring"/&gt;</span></div><div class="yiv8430263493MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;, &quot;sans-serif&quot;;color:#1F497D;"> &nbsp;</span></div><div class="yiv8430263493MsoNormal"><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>_________________________________________________________________________<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>