[Freeswitch-users] python+ESL
Денис
denis at ringme.ru
Fri Jun 27 11:27:18 MSD 2014
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?
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list