<p dir="ltr">Lua scripts are really good at doing this, and if you are crafty enough you can even give them a failure description and supporting sip trace. That IMO would be the best option. I&#39;m mobile right now so I can&#39;t write you an example but maybe others can chime in. </p>

<p dir="ltr">- BDF</p>
<div class="gmail_quote">On May 17, 2013 4:59 PM, &quot;Sean Devoy&quot; &lt;<a href="mailto:sdevoy@bizfocused.com">sdevoy@bizfocused.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" background="cid:image001.gif@01CE531F.1DE806C0" lang="EN-US" link="#1F86FF" vlink="#005DC9"><img src="cid:image001.gif@01CE531F.1DE806C0" width="0" height="0" style="width:0;min-height:0"><div><p class="MsoNormal">
<span style="color:#1f497d">Hi All,<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">I have been having pretty good luck with redundancy by dialing through multiple gateways like:<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas;color:windowtext">&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">bridge</span><span style="font-size:9.5pt;font-family:Consolas;color:windowtext">&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">data</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas;color:windowtext">&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">sofia/gateway/cheap/1xxxxxxxxxx, [leg_delay_start=8]sofia/gateway/expensive/1xxxxxxxxxx</span><span style="font-size:9.5pt;font-family:Consolas;color:windowtext">&quot;</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">/&gt;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">If gateway cheap fails, the call goes through on the expensive gateway.  That is fine, but I would like an email notification of the failure on the cheap gateway.  Is there any way to do that?  The support group at the gateway vender is very good at correcting the problem when notified.  I would love to send them an email of failures automatically.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Sean<u></u><u></u></span></p>
</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>