<div dir="ltr">I need help getting events from originated session.<br><br>This is my lua script:<br><br>function onInput_MainSession(s, type, obj)<br> -- This one is working fine.<br> freeswitch.consoleLog("info", "Callback with type " .. type .. "\n");<br>
end<br><br>function onInput_NewSession(s, type, obj)<br> -- This one is never called.<br> freeswitch.consoleLog("info", "Callback with type " .. type .. "\n");<br>end<br><br>session:answer();<br>
session:setInputCallback("onInput_MainSession");<br>session:sleep(200);<br>session:execute("detect_speech", "unimrcp testgrammer trestgrammer");<br><br>newsession = freeswitch.Session("user/1002");<br>
newsession:setInputCallback("onInput_NewSession");<br>newsession:sleep(200);<br>
newsession:execute("detect_speech", "unimrcp testgrammer trestgrammer");<br><br>while ((session:ready() == true) ) and (newsession:ready() == true) do<br> -- Loop<br> sleep(200);<br>end<br><br>I am unable to capture any of the new session events or dtmf.<br>
<br>Please help.<br><br>Thank you,<br>Mohammed Habib<br></div>