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@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