freeswitch/libs/esl/python/events.py
Brian West 3bdec0c091 ESL-1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12337 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-27 22:56:30 +00:00

21 lines
298 B
Python

#!/usr/bin/env python
import string
import sys
from ESL import *
con = ESLconnection("localhost","8021","ClueCon")
#are we connected?
if con.connected:
con.events("plain", "all");
while 1:
#my $e = $con->recvEventTimed(100);
e = con.recvEvent()
if e:
print e.serialize()