[Freeswitch-svn] [commit] r12189 - freeswitch/trunk/libs/esl/python
FreeSWITCH SVN
brian at freeswitch.org
Fri Feb 20 10:28:23 PST 2009
Author: brian
Date: Fri Feb 20 12:28:23 2009
New Revision: 12189
Log:
more examples from anm
Added:
freeswitch/trunk/libs/esl/python/events.py
Added: freeswitch/trunk/libs/esl/python/events.py
==============================================================================
--- (empty file)
+++ freeswitch/trunk/libs/esl/python/events.py Fri Feb 20 12:28:23 2009
@@ -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()
More information about the Freeswitch-svn
mailing list