[Freeswitch-users] Backups outbound calls via several isp

Francis sms at icefire.qza.net.au
Tue May 27 18:17:54 MSD 2014


Oh, and you might also want to add

<action application="set" data="hangup_after_bridge=true"/>



On 27/05/2014 5:16 PM, Francis wrote:
> In that case, continue_on_fail would probably be more suitable. I 
> haven't tested this, but you could try:
>
> <include>
>   <extension name="outbound">
>     <condition field="destination_number" expression="^(\d+)$">
>
> <action application="set" data="continue_on_fail=true"/>
>
>  <action application="set" data="effective_caller_id_number=aon"/>
> <action application="bridge" data="sofia/gateway/isp0/$1"/>
>    <action application="ring_ready"/>
>
>  <action application="set" data="effective_caller_id_number=change_me_1"/>
> <action application="bridge" data="sofia/gateway/isp1/$1"/>
>    <action application="ring_ready"/>
>
>  <action application="set" data="effective_caller_id_number=change_me_2"/>
> <action application="bridge" data="sofia/gateway/isp2/$1"/>
>    <action application="ring_ready"/>
>
>  <action application="set" data="effective_caller_id_number=change_me_3"/>
> <action application="bridge" data="sofia/gateway/isp3/$1"/>
>    <action application="ring_ready"/>
>     </condition>
>   </extension>
> </include>
>
> Another alternative is to duplicate the dialplan extensions and 
> customize the caller ID for each one as well as using a | separated 
> list of ISP's, probably not what you want to do here, but it's do-able.
>
> Francis
>
>
> On 27/05/2014 4:36 PM, Roman wrote:
>> Francis, thx!
>>
>> But if each isp use custom effective_caller_id_number format and 
>> destination_number rule?
>>
>> -- 
>> 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
>
>
>
> _________________________________________________________________________
> 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/20140528/4f8a7878/attachment-0001.html 


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