[Freeswitch-users] Problems passing arguments to lua

Nik Middleton nik.middleton at noblesolutions.co.uk
Sun Feb 8 14:31:35 PST 2009


Hi Guys,

 

I'm having some issues passing an argument to an lua script.

 

Basically in an originate command I pass the name of a .wav file

 

If I hard code the file session:streamFile("myfile.wav"]);

 

It works,

 

However, using this:

 

session:streamFile(argv[1]);

 

causes this error

 

2009-02-08 22:09:07 [ERR] mod_lua.cpp:176 lua_parse_and_execute() cannot
open /usr/local/freeswitch/scripts/helloworld.lua,myfile.wav: No such
file or directory

 

Any Ideas?

 

Regards

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090208/c4f6b7b5/attachment.html 


More information about the Freeswitch-users mailing list