<div dir="ltr">I do have the book :)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 30, 2013 at 2:55 PM, Nathan Neulinger <span dir="ltr">&lt;<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">FYI, even the book isn&#39;t completely consistent - I know there was at least one place in it where it said something<br>


explicitly about not being able to use a set variable to make further dialplan decisions with no mention of inline.<br>
<br>
I can try and find it again if it&#39;s something you want to update for a future rev.<br>
<br>
-- Nathan<br>
<div class="im"><br>
On 08/29/2013 06:30 PM, Michael Collins wrote:<br>
&gt; tsk tsk! you should be reading about that in chapters 5 and 8 of the FreeSWITCH book! ;) Also this page has some extra<br>
&gt; info you might appreciate:<br>
&gt;<br>
&gt; <a href="https://wiki.freeswitch.org/wiki/Dialplan_XML#Availability_of_Variables" target="_blank">https://wiki.freeswitch.org/wiki/Dialplan_XML#Availability_of_Variables</a><br>
&gt;<br>
&gt; -MC<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Aug 29, 2013 at 12:06 PM, David Villasmil &lt;<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     You the man! thanks!! I had never heard (read) or that &quot;inline&quot;...<br>
&gt;<br>
&gt;     David<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt;     On Thu, Aug 29, 2013 at 6:28 PM, Kevin Wormington &lt;<a href="mailto:kworm@sofnet.com">kworm@sofnet.com</a> &lt;mailto:<a href="mailto:kworm@sofnet.com">kworm@sofnet.com</a>&gt;&gt; wrote:<br>


&gt;<br>
&gt;         I believe you would need to add inline=&quot;true&quot; to your action setting the<br>
&gt;         variable...see <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions" target="_blank">http://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions</a><br>
&gt;<br>
&gt;         Kevin<br>
&gt;<br>
&gt;         On 08/29/2013 10:10 AM, David Villasmil wrote:<br>
&gt;          &gt; Hello guys,<br>
&gt;          &gt;<br>
&gt;          &gt; I&#39;ve got this in my dialplan:<br>
&gt;          &gt;<br>
&gt;          &gt; &lt;action application=&quot;set&quot; data=&quot;rand_val=${expr<br>
&gt;          &gt; randomize(&amp;x);ceil(random(0,100,&amp;x))}&quot;/&gt;<br>
&gt;          &gt; &lt;action application=&quot;log&quot; data=&quot;INFO Random dialplan ${expr<br>
&gt;          &gt; randomize(&amp;x);ceil(random(0,100,&amp;x))}&quot;/&gt;<br>
&gt;          &gt; &lt;action application=&quot;log&quot; data=&quot;INFO Random value is ${rand_val}&quot;/&gt;<br>
&gt;          &gt;<br>
&gt;          &gt; and this is what i see in my cli:<br>
&gt;          &gt;<br>
</div>&gt;          &gt; Dialplan: sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt; Regex<br>


<div class="im">&gt;          &gt; (PASS) [respond] destination_number(1234) =~ /^.*/ break=on-false<br>
</div>&gt;          &gt; Dialplan: sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt;<br>


<div class="im">&gt;         Action<br>
&gt;          &gt; set(rand_val=${expr randomize(&amp;x);ceil(random(0,100,&amp;x))})<br>
</div>&gt;          &gt; Dialplan: sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt;<br>


<div class="im">&gt;         Action<br>
&gt;          &gt; log(INFO Random dialplan ${expr randomize(&amp;x);ceil(random(0,100,&amp;x))})<br>
</div>&gt;          &gt; Dialplan: sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt;<br>


<div class="im">&gt;         Action<br>
&gt;          &gt; log(INFO Random value is ${rand_val})<br>
&gt;          &gt; 2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:167<br>
</div>&gt;          &gt; (sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt;) State Change<br>


<div class="im">&gt;          &gt; CS_ROUTING -&gt; CS_EXECUTE<br>
&gt;          &gt; 2013-08-29 16:40:48.834592 [DEBUG] switch_core_session.c:1341 Send<br>
</div>&gt;          &gt; signal sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt; [BREAK]<br>


<div class="im">&gt;          &gt; 2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:471<br>
</div>&gt;          &gt; (sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt;) State ROUTING<br>


<div class="im">&gt;          &gt; going to sleep<br>
&gt;          &gt; 2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:416<br>
</div>&gt;          &gt; (sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt;) Running State<br>


<div class="im">&gt;          &gt; Change CS_EXECUTE<br>
&gt;          &gt; 2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:478<br>
</div>&gt;          &gt; (sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt;) State EXECUTE<br>


<div class="im">&gt;          &gt; 2013-08-29 16:40:48.834592 [DEBUG] mod_sofia.c:230<br>
</div>&gt;          &gt; sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt; SOFIA EXECUTE<br>


<div class="im">&gt;          &gt; 2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:209<br>
</div>&gt;          &gt; sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt; Standard<br>


&gt;         EXECUTE<br>
&gt;          &gt; EXECUTE sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt; &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> &lt;mailto:<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>&gt;&gt;<br>


<div class="im">&gt;         log(INFO ASR<br>
&gt;          &gt; 40 we got )<br>
&gt;          &gt; 2013-08-29 16:40:48.854572 [INFO] mod_dptools.c:1567 ASR 40 we got<br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;          &gt; Why is the &quot;${rand_val}&quot; not being parsed?<br>
&gt;          &gt;<br>
&gt;          &gt; Thanks,<br>
&gt;          &gt;<br>
&gt;          &gt; David<br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;          &gt; _________________________________________________________________________<br>
&gt;          &gt; Professional FreeSWITCH Consulting Services:<br>
</div>&gt;          &gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im">&gt;          &gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;          &gt;<br>
&gt;          &gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;          &gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;          &gt;<br>
&gt;          &gt; Official FreeSWITCH Sites<br>
&gt;          &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;          &gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;          &gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;          &gt;<br>
&gt;          &gt; FreeSWITCH-users mailing list<br>
</div>&gt;          &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>


<div class="im">&gt;          &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;          &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;          &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;          &gt;<br>
&gt;<br>
&gt;         _________________________________________________________________________<br>
&gt;         Professional FreeSWITCH Consulting Services:<br>
</div>&gt;         <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im">&gt;         <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;         FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;         <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt;         Official FreeSWITCH Sites<br>
&gt;         <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;         <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;         <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;         FreeSWITCH-users mailing list<br>
</div>&gt;         <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>


<div class="im">&gt;         <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;         UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;         <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _________________________________________________________________________<br>
&gt;     Professional FreeSWITCH Consulting Services:<br>
</div>&gt;     <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im">&gt;     <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;     <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt;     Official FreeSWITCH Sites<br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;     <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;     <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-users mailing list<br>
</div>&gt;     <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>


<div class="im HOEnZb">&gt;     <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Michael S Collins<br>
&gt; Twitter: @mercutioviz<br>
&gt; <a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
&gt; <a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
&gt; <a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
&gt;<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
------------------------------------------------------------<br>
Nathan Neulinger                       <a href="mailto:nneul@mst.edu">nneul@mst.edu</a><br>
Missouri S&amp;T Information Technology    <a href="tel:%28573%29%20612-1412" value="+15736121412">(573) 612-1412</a><br>
System Administrator - Architect<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>