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