[Freeswitch-users] continue_on_fail problem

Evgeniy Movlyan evgeniy at bestnet.kharkov.ua
Fri Sep 7 11:59:57 MSD 2012


Hi to all!
For example i have 2 phones: 7604503 and 7604504. If i'm calling to 
7604504 and it's busy, then call must be transfered to 7604503.
My dialplan is:

<context name="default">
<extension name="BESTNET">
<condition field="destination_number" expression="^(7604504)$">
<action application="set" data="dialed_extension=$1"/>
<action application="set" data="call_timeout=30"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=USER_BUSY"/>
<action application="set" data="tansfer_on_fail=USER_BUSY BUSY XML error"/>
<action application="bridge" 
data="user/${dialed_extension}@${domain_name}"/>
</condition>
</extension>
</context>
<context name="error">
<extension name="BUSY">
<condition field="${originate_disposition}" expression="^USER_BUSY$" 
continue="false" break="on-true">
<action application="log" data="IM HERE!!!!!!!!!!!!!!!!"/>
<action application="set" data="dialed_extension=$1"/>
<action application="set" data="call_timeout=30"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=false"/>
<action application="bridge" data="user/7604503@${domain_name}"/>
</condition>
</extension>
</context>

But it's doesn't work:( Please help and sorry for my english:)
-- 
Evgeniy Movlyan,
BestNet Ltd.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list