<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><div><font face="'times new roman', 'new york', times, serif">i have created the file named "helloworld.lua" like this:</font></div><div><font face="'times new roman', 'new york', times, serif">session:answer();</font></div><div><font face="'times new roman', 'new york', times, serif">session:streamFile("blah.wav");</font></div><div><font face="'times new roman', 'new york', times, serif">session:hangup();</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">and it working correctly,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">**now i want to use lua command -not freeswitch command -in lua </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">for example run:</div><div
style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">op='+'</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><pre style="text-align: justify; ">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</pre><pre style="text-align: justify; ">but how can do that?</pre><pre style="text-align: justify; ">thanks alot</pre></div></div></div></body></html>