<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div style="-webkit-text-size-adjust: auto; ">Maybe with:</div><div style="-webkit-text-size-adjust: auto; "><br></div><div><p style="margin: 0.4em 0px 0.5em; "><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Failover for your outbound gateway is easy to implement at bridge time using the | separator:</span></p><pre style="padding: 1em; border: 1px dashed rgb(47, 111, 171); "><font face="Helvetica"><span style="white-space: normal; -webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> &lt;action application="bridge" data="sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"/&gt;</span></font><span style="line-height: 1.1em; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto; background-color: rgb(249, 249, 249); ">
</span></pre><div style="-webkit-text-size-adjust: auto; ">Or</div><div style="-webkit-text-size-adjust: auto; "><br></div><div style="-webkit-text-size-adjust: auto; ">By checking&nbsp;</div><div>${bridge_hangup_cause}?</div><div><br></div><div><br></div><div><br></div><span style="-webkit-text-size-adjust: auto;">---</span><div style="-webkit-text-size-adjust: auto; "><br></div><div style="-webkit-text-size-adjust: auto; ">David Villasmil</div><div style="-webkit-text-size-adjust: auto; "><br></div></div><div style="-webkit-text-size-adjust: auto; "><br>On Feb 23, 2013, at 8:48, "<a href="mailto:shayne.alone@gmail.com">shayne.alone@gmail.com</a>" &lt;<a href="mailto:shayne.alone@gmail.com">shayne.alone@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto; "><div><div dir="ltr">I need to control over the return value of bridge application:<br><br>How should on find if the call was rejected bye Carrier_One ( before I fill 10 calls which I am permitted to ) and route then via Carrier_Two?<br>

<br><br><br>&lt;include&gt;<br>&nbsp; &lt;extension name="noPerfixed"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^([0-9]+)$"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;action application="set" data="ignore_early_media=true"/&gt;&nbsp; <br>

&nbsp;&nbsp;&nbsp; &lt;action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;action application="limit_execute" data="hash outbound carrierOne 10 bridge sofia/gateway/xxx.xxx.xxx.101/$1" /&gt;<br>

<span style="color:rgb(153,0,0)">&nbsp;&nbsp;&nbsp; &lt;!-- &nbsp; &nbsp; what should i place here?&nbsp;&nbsp; &nbsp; &nbsp; --&gt;</span><br>&nbsp;&nbsp;&nbsp; &lt;action application="hangup"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;action application="bridge" data="sofia/gateway/xxx.xxx.xxx.102/12$1"/&gt; <br>

&nbsp;&nbsp;&nbsp; &lt;action application="hangup"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br><br>&nbsp; &lt;extension name="Perfixed"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^[0-9]+#([0-9]+)$"&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="transfer" data="$1 XML CallPlan"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br>&lt;/include&gt;<br><br><br><br clear="all"><br>-- <br><div dir="ltr"><span style="font-family:tahoma,sans-serif">Regards,</span><br style="font-family:tahoma,sans-serif">

<span style="font-family:tahoma,sans-serif">Ali R. Taleghani</span><span style="font-family:tahoma,sans-serif"></span><br style="font-family:tahoma,sans-serif"></div>
</div>
</div></blockquote><blockquote type="cite" style="-webkit-text-size-adjust: auto; "><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com">http://www.cudatel.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>