[Freeswitch-users] ESL with PHP - last event is not received

David Villasmil david.villasmil.work at gmail.com
Wed Nov 2 18:08:06 MSK 2016


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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161102/5062a996/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list