The following code worked for me:<br><br>myvar = session:getVariable(&#39;sound_prefix&#39;)<br>freeswitch.consoleLog(&#39;WARNING&#39;,&quot;The sound_prefix variable contains &#39;&quot; .. myvar .. &quot;&#39;\n&quot;)<br>
<br>with dialplan:<br>  &lt;extension name=&quot;Lua vars test&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(9906)$&quot;&gt;<br>      &lt;action application=&quot;answer&quot;/&gt;<br>
      &lt;action application=&quot;lua&quot; data=&quot;vars.lua&quot;/&gt;<br>      &lt;action application=&quot;hangup&quot;/&gt;<br>    &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br>-MC<br><br><div class="gmail_quote">
On Mon, Jul 30, 2012 at 12:22 AM, Thomas Hoellriegel <span dir="ltr">&lt;<a href="mailto:admin@blindi.net" target="_blank">admin@blindi.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys,<br>
I like to import variables from xml dialplan in lua.<br>
I found:<br>
session:getVariable.<br>
the problem:<br>
i can only get variables from the lua wiki page.<br>
But different variables for example:<br>
strftime<br>
or from: vars.xml : sound_prefix can.t be get.<br>
<br>
Or timeconditions don.t working in lua.<br>
<br>
Can your help please?<br>
thanks<br>
<br>
<br>
<br>
<br>
<br>
<br>
---------------<br>
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:<br>
<a href="http://www.blindi.net/callback" target="_blank">http://www.blindi.net/callback</a><br>
homepage: <a href="http://www.blindi.net" target="_blank">http://www.blindi.net</a><br>
blinde-misc mailingliste für blinde. anmeldung unter:<br>
<a href="http://www.blindi.net/mailman/listinfo/blinde-misc" target="_blank">http://www.blindi.net/mailman/<u></u>listinfo/blinde-misc</a><br>
<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>
Join Us At ClueCon - Aug 7-9, 2012<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><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>