mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-05 12:41:38 +00:00
more examples from anm
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12189 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b11b19af93
commit
65181f78ff
21
libs/esl/python/events.py
Normal file
21
libs/esl/python/events.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import string
|
||||||
|
import sys
|
||||||
|
import pickle
|
||||||
|
|
||||||
|
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()
|
Loading…
x
Reference in New Issue
Block a user