[Freeswitch-users] continue not working
David Villasmil
david.villasmil.work at gmail.com
Wed Mar 8 23:51:05 MSK 2017
Hello guys,
Does anyone see anything wrong with this? The first extension gets
executed, but not the second, even though i have continue="true"
<extension name="do_this_for_all_9" continue="true">
<condition field="destination_number" expression="^(9.*)$">
<action application="set"
data="rand_val=${expr(randomize(&x);ceil(random(0,10,&x)))}"/>
<action application="log" data="ERR Random Value:
<${rand_val}>"/>
</condition>
</extension>
<extension name="local_call2">
<condition field="destination_number" expression="^(9.*)$">
<condition field="${cond(${rand_val} > 4 ? YES : NO)}"
expression="^YES$">
<action application="set" data="continue_on_fail=true"/>
<action application="ring_ready"/>
<action application="sleep" data="3000"/>
<action application="hangup" data="USER_BUSY"/>
<anti-action application="set"
data="continue_on_fail=true"/>
<anti-action application="ring_ready"/>
<anti-action application="sleep" data="3000"/>
<anti-action application="sched_hangup" data="+10
allotted_timeout"/>
<anti-action application="answer"/>
<acti-action application="callcenter" data="support at default
"/>
<anti-action application="hangup"/>
</condition>
</condition>
</extension>
Regards,
David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
ᐧ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170308/f1191d71/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list