<p>Not sure this is your issue...if you use lua with inline, you can&#39;t touch the media. The media is for later to be processed.</p>
<p>-Avi</p>
<div class="gmail_quote">On May 17, 2014 1:07 PM, &quot;Vincent Xia&quot; &lt;<a href="mailto:gmangudai@gmail.com">gmangudai@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>yeah inline is the workout, just need to have the lua application written as below:</div><div>&lt;action inline=&quot;true&quot; application=&quot;lua&quot; data=&quot;setvar.lua&quot; /&gt;</div><div>
<br>
</div><div>but seems there comes another issue, session:streamFile() is no longer working, playback the same file in the xml dialplan is fine.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

2014-05-16 19:10 GMT+08:00  <span dir="ltr">&lt;<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

You would have to do inline=&quot;true&quot; on your lua statement, but I am not<br>
sure you can even do that -- inline is only good for a few things like<br>
set, but maybe Brian or someone could let us know if you can do that<br>
with a lua script.<br>
<div><div><br>
Vincent Xia &lt;<a href="mailto:gmangudai@gmail.com" target="_blank">gmangudai@gmail.com</a>&gt; wrote:<br>
<br>
&gt; the dialpan is as follow:<br>
&gt;         &lt;extension name=&quot;Test_Extension&quot;&gt;<br>
&gt;               &lt;condition field=&quot;destination_number&quot;<br>
&gt; expression=&quot;^\b(10[0-1][0-9])\b$&quot; break=&quot;never&quot;&gt;<br>
&gt;                       &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot; /&gt;<br>
&gt;                       &lt;action application=&quot;lua&quot; data=&quot;setvar.lua&quot; /&gt;<br>
&gt;                       &lt;action application=&quot;log&quot; data=&quot;INFO my_lua_var=${my_lua_var}&quot; /&gt;<br>
&gt;               &lt;/condition&gt;<br>
&gt;               &lt;condition field=&quot;${my_lua_var}&quot; expression=&quot;1&quot;&gt;<br>
&gt;                       &lt;action application=&quot;sleep&quot; data=&quot;1000&quot; /&gt;<br>
&gt;               &lt;/condition&gt;<br>
&gt;         &lt;/extension&gt;<br>
&gt;<br>
&gt; the the xml dialplan i have a variable set inside a lua<br>
&gt; script(session:setVariable(&quot;my_lua_var&quot;, &quot;1&quot;);), but its value is<br>
&gt; always &quot;undefined&quot; during the parsing stage. i need the variable to be<br>
&gt; a condition field so how can i capture it?<br>
&gt;<br>
</div></div>&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&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>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&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>
<br>
--<br>
Your life is like a penny.  You&#39;re going to lose it.  The question is:<br>
How do<br>
you spend it?<br>
<br>
         John Covici<br>
         <a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
</blockquote></div><br></div>
<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>
<br></blockquote></div>