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.