Hi
I'm trying to use a simple lua event consumer like this:
connnn = freeswitch.EventConsumer('CHANNEL_HANGUP');
freeswitch.consoleLog("NOTICE", "waiting for event \n");
e = con:pop(1,500)
freeswitch.consoleLog("NOTICE", "ssssssssssssssstop waiting for event \n");
freeswitch.consoleLog("NOTICE", e:serialize().."\n");
but lines after consumer creation are never executed! if I comment the first line, next lines are executed successfully, scripts blocks at the first line
my lua xml config is like this:
<configuration name="lua.conf" description="LUA Configuration">
<settings>
<param name="module-directory" value="/usr/local/lib/lua/5.2/?.so"/>
<param name="startup-script" value="jobs/rk-token-update.lua"/>
<hook event="DETECTED_TONE" script="on_tone.lua"/>
<hook event="CHANNEL_BRIDGE" script="onbridge.lua"/>
hook event="CHANNEL_UNBRIDGE" script="onbridge.lua"/>
</settings>
</configuration>
fs is an old box with version 1.6
FreeSWITCH Version 1.6.20+git~20180507T185611Z~43a9feb7f8~64bit (git 43a9feb 2018-05-07 18:56:11Z 64bit)