[Freeswitch-users] Failed to pass arguments to lua script of FreeSwitch ('arg' and 'arg[i]' are nil values)

king2kin xing2kin at yahoo.com
Tue Mar 13 12:46:27 MSK 2012


Hi all, 
 
It's said we could access the arguments passed to lua script by variable 'arg[i]' where i > 0.
 
for example,  { lua dummy.lua  aa 100 }
then, we will have as follows:
arg[1] -> aa
arg[2] -> 100
 
However, I always get 'nil' values for 'arg[i]' or 'arg' while running the lua script.
 
How can I pass and retrieve arguments or parameters to a lua script of FreeSwitch?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120313/002d908a/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list