@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Problems passing arguments to lua
Looks like you put a , instead of a space when calling the script.
/b
On Feb 8, 2009, at 6:21 PM, Nik Middleton wrote:
cannot open /usr/local/freeswitch/scripts/helloworld.lua,myfile.wav
Looks like you put a , instead of a space when calling the script.
/b
On Feb 8, 2009, at 6:21 PM, Nik Middleton wrote:
cannot open /usr/local/freeswitch/scripts/helloworld.lua,myfile.wav
___
Freeswitch-users mailing list
Freeswitch-users@lists.free
itch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Problems passing arguments to lua
Print out the variable to make sure it is what you expect:
io.write("argv is " .. argv[1] .. "\n";
Also, if you don't give the sound file an absolute path name then it
will a
Print out the variable to make sure it is what you expect:
io.write("argv is " .. argv[1] .. "\n";
Also, if you don't give the sound file an absolute path name then it
will automatically use the sound dir path.
-MC
Sent from my iPhone
On Feb 8, 2009, at 2:31 PM, "Nik Middleton" > wrote:
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