<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Maybe you should set rand_val with an
inline attribute?<br>
<a class="moz-txt-link-freetext" href="https://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions">https://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions</a><br>
<br>
On 03/08/17 21:51, David Villasmil wrote:<br>
</div>
<blockquote
cite="mid:CAFGRPVp0FndQ3=2AgfvAPdb4bP3mF4KVc_9V3R4PjipKFX9BTA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hello guys,</div>
<div><br>
</div>
<div>Does anyone see anything wrong with this? The first
extension gets executed, but not the second, even though i
have continue="true"</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><extension name="do_this_for_all_9"
continue="true"></div>
<div> <condition field="destination_number"
expression="^(9.*)$"></div>
<div> <action application="set"
data="rand_val=${expr(randomize(&x);ceil(random(0,10,&x)))}"/></div>
<div> <action application="log" data="ERR
Random Value: <${rand_val}>"/></div>
<div> </condition></div>
<div></extension></div>
<div><br>
</div>
<div><extension name="local_call2"></div>
<div> <condition field="destination_number"
expression="^(9.*)$"></div>
<div> <condition field="${cond(${rand_val} >
4 ? YES : NO)}" expression="^YES$"></div>
<div> <action application="set"
data="continue_on_fail=true"/></div>
<div> <action application="ring_ready"/></div>
<div> <action application="sleep"
data="3000"/></div>
<div> <action application="hangup"
data="USER_BUSY"/></div>
<div><br>
</div>
<div> <anti-action application="set"
data="continue_on_fail=true"/></div>
<div> <anti-action
application="ring_ready"/></div>
<div> <anti-action application="sleep"
data="3000"/></div>
<div> <anti-action
application="sched_hangup" data="+10 allotted_timeout"/></div>
<div> <anti-action application="answer"/></div>
<div> <acti-action application="callcenter"
data="support@default"/></div>
<div> <anti-action application="hangup"/></div>
<div> </condition></div>
<div> </condition></div>
<div></extension></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a moz-do-not-send="true"
href="mailto:david.villasmil.work@gmail.com"
target="_blank">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
</div>
<div hspace="streak-pt-mark" style="max-height:1px"><img
moz-do-not-send="true"
style="width:0px;max-height:0px;overflow:hidden"
src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=5e711359-f397-4bc1-bddf-9c05c4e53c5b"><font
color="#ffffff" size="1">ᐧ</font></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
With kind regards
Peter Steinbach
Telefaks Services GmbH
<a class="moz-txt-link-freetext" href="mailto:lists">mailto:lists</a> (att) telefaks.de
Internet: <a class="moz-txt-link-abbreviated" href="http://www.telefaks.de">www.telefaks.de</a>
</pre>
</body>
</html>