<div dir="ltr">I have lua 'background' script that wake up every few seconds, and check to perform specific task, one of it to established call.</div><div dir="ltr">Calls are then initiated then transfer to some extension in dialplan. The scripts has been running and works as expected.</div>
<div dir="ltr">But after session ended(hangup), channels is not released and can be seen using cli "show channels". and trying to kill such channel result in "-ERR No Such Channel!"</div><div dir="ltr">
<br></div><div dir="ltr">This seems being reported before, but I can't seems to find any resolution.</div><div dir="ltr"><br></div><div dir="ltr">Following simple script could replicate the issues : </div><div dir="ltr">
<br></div><div dir="ltr">freeswitch> luarun SimpleDialer.lua</div><div dir="ltr"><br></div><div dir="ltr">=================== SimpleDialer.lua</div><div dir="ltr"><br></div><div dir="ltr">local threadName = "SimpleDialer"<br>
<div><br></div><div><div>while true do </div><div> </div>
<div> freeswitch.consoleLog("info", threadName.." ticking\n") </div><div> -- task run here</div>
<div> local new_session = freeswitch.Session('sofia/gateway/vox/<a href="tel:%2B15085895115" value="+15085895115" target="_blank">+150</a>88888888')</div>
<div> new_session:transfer("echo", "XML", "default")</div><div><br></div><div> freeswitch.msleep(60000)</div>
<div>end</div>
</div><div><br></div><div>============= dialplan entry</div><div><br></div><div><div> <extension name="echo"></div><div> <condition field="destination_number" expression="^echo$"></div>
<div> <action application="echo" data=""/></div><div> </condition></div><div> </extension> </div></div><div><br></div></div>