use "myevents" make FreeSwitch Crash!
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
Now that jira is up that seems to be the right place... as long as you're tried this with git head. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH_Wire T: +1.918.420.9266 | F: +1.918.420.9267 | M: +1.918.424.WEST iNUM: +883 5100 1420 9266 UK: +44 20 3298 4900 ISN: 410*543 On Nov 28, 2012, at 4:42 AM, Shahzad Bhatti <shahzad.bhatti@g-r-v.com> wrote:
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Brian West
-
Shahzad Bhatti