[Freeswitch-users] Dialplan failover question

DJB International djbinter at gmail.com
Tue Jun 22 21:44:46 PDT 2010


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100622/b57c7262/attachment.html 


More information about the FreeSWITCH-users mailing list