[Freeswitch-users] can not use freeswitch.EventConsumer

Babak Yakhchali babak.freeswitch at gmail.com
Tue Mar 10 08:45:31 UTC 2020


and after that log files are filled with these:

2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached
2020-03-10 12:02:34.911950 [CRIT] mod_event_socket.c:186 Log enqueue ERROR
[11] | [Resource temporarily unavailable] Queue size: [100000/100000] Max
queue size reached

On Mon, Mar 9, 2020 at 2:51 PM Babak Yakhchali <babak.freeswitch at gmail.com>
wrote:

> 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)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200310/1d1e90ea/attachment.html>


More information about the FreeSWITCH-users mailing list