[Freeswitch-users] Dialplan failover question
Sergey Okhapkin
sos at sokhapkin.dyndns.org
Wed Jun 23 05:20:30 PDT 2010
I prefer the first way, it allows to set leg A channel variables to different
values depending on which gateway completed the call.
On Wednesday 23 June 2010, DJB International wrote:
> It's always confused me. I wonder whether there are any differences
> between these 2 dialplans.
>
> <extension name="test1">
> <condition field="destination_number" expression="^(.*)$">
> <action application="set" data="hangup_after_bridge=true"/>
> <action application="set" data="continue_on_fail=true"/>
> <action application="bridge" data="sofia/gateway/carrier1/$1"/>
> <action application="bridge" data="sofia/gateway/carrier2/$1"/>
> </condition>
> </extension>
>
> -and-
>
> <extension name="test2">
> <condition field="destination_number" expression="^(.*)$">
> <action application="set" data="hangup_after_bridge=true"/>
> <action application="set" data="continue_on_fail=true"/>
> <action application="bridge"
> data="sofia/gateway/carrier1/$1|sofia/gateway/carrier2/$1"/>
> </condition>
> </extension>
>
> What is the best way to use it?
>
> Thank you,
> Dorn B.
>
More information about the FreeSWITCH-users
mailing list