5 Dec
2013
5 Dec
'13
7:32 p.m.
Hello, I am trying to write a lua script and I am getting an error when calling it. I have moved the script to the scripts directory in Freeswitch and same result. The lua mod is enabled and loaded on Freeswitch. Script------------------------------------------------------------------------------ #!/usr/bin/lua api = freeswitch.API(); reply = api:executeString("version"); ~ Error--------------------------------------------------------------------------------- lua hello.lua lua: hello.lua:3: attempt to index global 'freeswitch' (a nil value) stack traceback: hello.lua:3: in main chunk [C]: ? thanks,