ESL with PHP - last event is not received
Hello, I'm using a php event socket listener based on this example (wich is linked in the freeswitch confluence): https://bitbucket.org/lrichard/freeswitcheventsocketlistener It works well so far - but the last event of an event chaine is always missing. It is only transfered when the next event takes place. For example when a conference ends we have the following events: floor-change play-file-done del-member conference-destroy But conference-destroy is not received - only when there is a next event! Is this a bug? Is the example missing something? Thanks a lot! Melanie
Hello, has anyone ever used ESL to receive events? I'd really be glad to get some advice in this matter! Kind Regards, Melanie Am 28.10.2016 um 16:57 schrieb Melanie Treitinger:
Hello,
I'm using a php event socket listener based on this example (wich is linked in the freeswitch confluence): https://bitbucket.org/lrichard/freeswitcheventsocketlistener
It works well so far - but the last event of an event chaine is always missing. It is only transfered when the next event takes place.
For example when a conference ends we have the following events: floor-change play-file-done del-member conference-destroy
But conference-destroy is not received - only when there is a next event!
Is this a bug? Is the example missing something?
Thanks a lot! Melanie
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
In python, I use this. #!/usr/bin/env python ''' events.py - subscribe to all events and print them to stdout ''' import ESL con = ESL.ESLconnection('localhost', '8021', 'ClueCon') if con.connected: con.events('plain', 'all') while 1: e = con.recvEvent() if e: print e.serialize()
Try removing all logic, and just subscribing to all events and printing them out. I've never used esl with php, but I'd be surprised the last event is missing like that. On Wed, Nov 2, 2016 at 11:05 AM Aqs Younas <aqsyounas@gmail.com> wrote:
In python, I use this.
#!/usr/bin/env python ''' events.py - subscribe to all events and print them to stdout ''' import ESL
con = ESL.ESLconnection('localhost', '8021', 'ClueCon')
if con.connected: con.events('plain', 'all') while 1: e = con.recvEvent() if e: print e.serialize() _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Apparently it has something to do with the log level I had set. "log All" was wrong - when I switched to "log INFO", all events were reveived. https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket https://freeswitch.org/confluence/display/FREESWITCH/mod_console One more question: is it necessary to use "linger" here? Am 02.11.2016 um 16:08 schrieb David Villasmil:
Try removing all logic, and just subscribing to all events and printing them out. I've never used esl with php, but I'd be surprised the last event is missing like that. On Wed, Nov 2, 2016 at 11:05 AM Aqs Younas <aqsyounas@gmail.com <mailto:aqsyounas@gmail.com>> wrote:
In python, I use this.
#!/usr/bin/env python ''' events.py - subscribe to all events and print them to stdout ''' import ESL
con = ESL.ESLconnection('localhost', '8021', 'ClueCon')
if con.connected: con.events('plain', 'all') while 1: e = con.recvEvent() if e: print e.serialize() _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Aqs Younas
-
David Villasmil
-
Melanie Treitinger