Failover for your outbound gateway is easy to implement at bridge time using the | separator:
<action application="bridge" data="sofia/gateway/primary/dialstring|sofia/gateway/secondary/dialstring"/>
I need to control over the return value of bridge application:
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?
<include>
<extension name="noPerfixed">
<condition field="destination_number" expression="^([0-9]+)$">
<action application="set" data="ignore_early_media=true"/>
<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION"/>
<action application="limit_execute" data="hash outbound carrierOne 10 bridge sofia/gateway/xxx.xxx.xxx.101/$1" />
<!-- what should i place here? -->
<action application="hangup"/>
<action application="bridge" data="sofia/gateway/xxx.xxx.xxx.102/12$1"/>
<action application="hangup"/>
</condition>
</extension>
<extension name="Perfixed">
<condition field="destination_number" expression="^[0-9]+#([0-9]+)$">
<action application="transfer" data="$1 XML CallPlan"/>
</condition>
</extension>
</include>
--Regards,
Ali R. Taleghani
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org