Hi everyone,
I am trying to use myevents to subscribe events but on call hang FREESWITCH Crash.
here is my script
test.lua
require "ESL"
hostname = "localhost"--'92.63.208.111';--'94.249.139.66'--'localhost';
port = '8021';
password = "ClueCon"--'Pak!stan'--'Pakistan';
sock = ESL.ESLconnection(hostname, port, password);
uuid = arg[1];
e = sock:sendRecv("myevents "..uuid);
while sock:connected() do
e = sock:recvEvent();
event = e:getType();
print (event.." EVENT Recieved")
end
call.lua
api = freeswitch.API()
uuid = api:executeString("create_uuid")
os.execute("lua test.lua "..uuid.." &")
os.execute("sleep 1")
session = freeswitch.Session("{ignore_early_media=true,origination_uuid="..uuid.."}user/1000");
session:setAutoHangup(false)
session:set_tts_parms("flite", "slt")
session:speak("this is a test call")
please tell me how to avoid crash and any help will be highly appreciated
Regards
Shahzad Bhatti