Re: [Freeswitch-users] Problems passing arguments to lua

2009-02-09 Thread Nik Middleton
@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

[Freeswitch-users] Problems passing arguments to lua

2009-02-08 Thread Nik Middleton
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

Re: [Freeswitch-users] Problems passing arguments to lua

2009-02-08 Thread Michael S Collins
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

Re: [Freeswitch-users] Problems passing arguments to lua

2009-02-08 Thread Nik Middleton
@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 automatically use the sound dir path

Re: [Freeswitch-users] Problems passing arguments to lua

2009-02-08 Thread Brian West
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