[Freeswitch-users] Backups outbound calls via several isp

Francis sms at icefire.qza.net.au
Mon May 26 19:05:08 MSD 2014


There's a shortcut, you can use the | as a logical OR:

<action application="bridge" 
data="sofia/gateway/isp0/$1|sofia/gateway/isp1/$1|sofia/gateway/isp2/$1"/>

... so each ISP will be tried in sequence until a call can be established.

Francis


On 27/05/2014 12:31 AM, Roman wrote:
> Hello!
>
> I have several ISP in freeswitch/sip_profiles (isp0, isp1, isp2). 
> Default routing define in freeswitch/dialplan/default and by default 
> used isp0 for outbound calls.
>
> <include>
>   <extension name="outbound">
>     <condition field="destination_number" expression="^(\d+)$">
> <action application="set" data="effective_caller_id_number=aon"/>
> <action application="bridge" data="sofia/gateway/isp0/$1"/>
> <action application="ring_ready"/>
>     </condition>
>   </extension>
> </include>
>
> How i can organize backup calls via isp1 or isp2 if isp0 is down?
>
> This can be done through 
> http://wiki.freeswitch.org/wiki/Variable_continue_on_fail ?
>
> Thanks for advice!
>
> -- 
> Kind regards,
>
> Roman
>
>
> _________________________________________________________________________
> 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/20140527/48856516/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list