From: Brian West Date: Fri, 20 Feb 2009 18:28:23 +0000 (+0000) Subject: more examples from anm X-Git-Tag: v1.0.4~1911 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65181f78ffce7689fe7f473c7b803503f6225aeb;p=thirdparty%2Ffreeswitch.git more examples from anm git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12189 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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()