]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
more examples from anm
authorBrian West <brian@freeswitch.org>
Fri, 20 Feb 2009 18:28:23 +0000 (18:28 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 20 Feb 2009 18:28:23 +0000 (18:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12189 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/python/events.py [new file with mode: 0644]

diff --git a/libs/esl/python/events.py b/libs/esl/python/events.py
new file mode 100644 (file)
index 0000000..e7257b7
--- /dev/null
@@ -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()