[Freeswitch-users] use "myevents" make FreeSwitch Crash!
Shahzad Bhatti
shahzad.bhatti at g-r-v.com
Wed Nov 28 13:42:10 MSK 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121128/b0bcde2e/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list