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