[Freeswitch-users] python+ESL

Thomas Quintana quintana.thomas at gmail.com
Wed Jul 2 19:24:54 MSD 2014


Hi Denis,

For Python ESL integration you can try freepy
<https://github.com/thomasquintana/freepy> it's an open source app server I
wrote and maintain in Python. It's designed to be a 100% async actor based
solution which is working very reliably for us.

Best,
Thomas Quintana


On Fri, Jun 27, 2014 at 3:27 AM, Денис <denis at ringme.ru> wrote:

> who wrote event handling with ESL.py?
> Code:
> #!/usr/bin/python
>
> import ESL
>
> # Establish an inbound connection to FreeSWITCH
> con = ESL.ESLconnection("localhost","8021","ClueCon")
> print con.connected()
> print con.getInfo()
>
> # set event command to receive all events
> con.events("plain", "all");
>
> #while(1): # or whileon.connected()):
> while(con.connected()):
>     e = con.recvEvent()
>     if e:
>       print "Event: ",e.serialize()
>
> Out:
> 0
> None
>
> run fs_cli:
> # fs_cli -H 127.0.0.1 -P 8021 -p ClueCon -b
> ...
> +OK log level  [7]
>
> Where exceptions with error?How to properly connect?
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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/20140702/aad4f966/attachment.html 


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