[Freeswitch-users] how to run Lua commands in freeswitch?

Samira Mh saami_mh at ymail.com
Tue May 29 13:38:35 MSD 2012


i have created the file named "helloworld.lua" like this:
session:answer();
session:streamFile("blah.wav");
session:hangup();
and it working correctly,
**now i want to use lua command -not freeswitch command -in lua 
for example run:

op='+'
if op == "+" then r = a + b elseif op == "-" then r = a - b elseif op == "*" then r = a*b elseif op == "/" then r = a/b else error("invalid operation") end
but how can do that?
thanks alot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120529/3ae47ef9/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list