[Freeswitch-users] if user_busy then continue_on_fail=false else continue_on_fail=true
Shahzad Bhatti
shahzad.bhatti at g-r-v.com
Wed Apr 16 18:45:51 MSD 2014
hi, i want to know how to impalement in XML_curl dialplan that
*if user busy then **set continue_on_fail=false **else *
*continue_on_fail=true*
it means when freeswitch get response *USER_BUSY then it stop attempt
otherwise continue.*
here is my sample dialplan:
<document type="freeswitch/xml">
<section name="dialplan" description="RE Dial Plan For FreeSwitch">
<context name="public">
<extension name="Bridge Call to Destination">
<condition field="destination_number" expression="^004917691444955$">
<action application="set" data="process_cdr=b_only"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="nibble_account=1"/>
<action application="set" data="nibble_rate=0"/>
<action application="export"
data="origination_caller_id_number=004917691444955"/>
<action application="export" data="nolocal:nibble_account=1"/>
<action application="export" data="cust_ip=186.218.49.95"/>
<action application="export" data="nolocal:nibble_rate=0.0229"/>
<action application="export" data="nolocal:connection_charges=0"/>
<action application="export" data="buy_rate=0.0199"/>
<action application="export" data="sell_rate=0.0229"/>
<action application="export" data="destination_id=470"/>
<action application="export" data="destination_name=Germany Mobile O2"/>
<action application="export" data="provider_id=9"/>
<action application="export" data="domain_ip=194.152.251.110"/>
<action application="export" data="nolocal:execute_on_answer=nibblebill
adjust -0" />
<action application="export"
data="absolute_codec_string=${ep_codec_string},PCMU,G729"/>
<action application="phrase" data="sayrate,0:2:29"/>
<action application="bridge"
data="{absolute_codec_string=PCMA,G729}sofia/external/
004917691444955 at 194.152.251.110"/>
</condition>
</extension>
</context>
</section>
</document>
Regards
Shahzad Bhatti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140416/dd1474ca/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list