From 65181f78ffce7689fe7f473c7b803503f6225aeb Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 20 Feb 2009 18:28:23 +0000 Subject: [PATCH] more examples from anm git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12189 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/python/events.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libs/esl/python/events.py diff --git a/libs/esl/python/events.py b/libs/esl/python/events.py new file mode 100644 index 0000000000..e7257b79f6 --- /dev/null +++ b/libs/esl/python/events.py @@ -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()