<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto">Hi all, </div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">It's said we could access the arguments passed to lua script by variable 'arg[i]' where i &gt; 0.</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">for example,&nbsp; { lua dummy.lua&nbsp; aa 100 }</div>
<div style="RIGHT: auto">then, we will have as follows:</div>
<div style="RIGHT: auto">arg[1] -&gt; aa</div>
<div style="RIGHT: auto">arg[2] -&gt; 100</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">However, I always get 'nil' values for 'arg[i]' or 'arg' while running the lua script.</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">How can I pass and retrieve arguments or parameters to a lua script of FreeSwitch?</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR>&nbsp;</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">&nbsp;</div>
<div style="RIGHT: auto">&nbsp;</div></div></body></html>