<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"> </div>
<div style="RIGHT: auto">It's said we could access the arguments passed to lua script by variable 'arg[i]' where i > 0.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">for example, { lua dummy.lua aa 100 }</div>
<div style="RIGHT: auto">then, we will have as follows:</div>
<div style="RIGHT: auto">arg[1] -> aa</div>
<div style="RIGHT: auto">arg[2] -> 100</div>
<div style="RIGHT: auto"> </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"> </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"> </div>
<div style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div></div></body></html>