[Freeswitch-users] outbound calls control

David Villasmil david.villasmil.work at gmail.com
Sun Feb 24 05:27:27 MSK 2013


Maybe with:

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"/>
Or

By checking 
${bridge_hangup_cause}?



---

David Villasmil


On Feb 23, 2013, at 8:48, "shayne.alone at gmail.com" <shayne.alone at gmail.com> wrote:

> 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 at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130224/974db51c/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list