[Freeswitch-dev] continue_on_fail and hangup_after_bridge with transfer
Vladimir Elizarov
xengelpublicx at gmail.com
Thu Jun 24 15:41:11 PDT 2010
I'm trying to make a dialplan:
<extension name="Long Dial">
<condition field="destination_number"
expression="^(^([0-9]{10})$|^([0-9]{11})$|^([0-9]{12})$|^\+([0-9]{11})$)$">
<action application="set"
data="hangup_after_bridge=true"/>
<action
application="set"data="continue_on_fail=NO_ROUTE_DESTINATION"/>
<action application="set" data="real_dialed_number=7777777"/>
</condition>
<condition field="destination_number" expression="^(79|89)(\d{9})$"
break="on-true">
<action application="set"
data="dtmf=WWWWWWWWWWWWWWWWWWWWW111222#WWWWWW89$2#@100"/>
<action application="bridge"
data="sofia/gateway/gw1/89$2|sofia/gateway/gw2/89$2|sofia/gateway/gw3/89$2"/>
<action application="transfer" data="to_card"/>
</condition>
</extension>
<extension name="to_card">
<condition field="destination_number" expression="^to_card$">
<action application="bridge"
data="{execute_on_answer=send_dtmf\s${dtmf}}sofia/internal/${real_dialed_number}@192.168.50.53:5061"/>
</condition>
</extension>
The logic of his work: if unavailable gateway to the next. if not
available all the gateway to go to the extension transfer.
A problem in If we get a code busy here, it is not satisfied
hangup_after_bridge. The call goes to the transfer. Why is this so?
trace:
http://pastebin.freeswitch.org/13244
--
Best regards, Vladimir Elizarov
More information about the FreeSWITCH-dev
mailing list