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?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Un cordial saludo / Best regards, _________________________ António Silva E-mail:asilva@wirelessmundi.com |