From d5d0bad6d57ddfd7e6886b56062e280a9c479ef7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 16 Jul 2008 15:44:41 +0000 Subject: [PATCH] add more example git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9052 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../languages/mod_python/python_example.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/mod/languages/mod_python/python_example.py b/src/mod/languages/mod_python/python_example.py index 49f260dc2f..a4f059a4ab 100644 --- a/src/mod/languages/mod_python/python_example.py +++ b/src/mod/languages/mod_python/python_example.py @@ -59,3 +59,32 @@ def fsapi(session, stream, env, args): def runtime(args): print args + "\n" + +# BIND TO AN XML LOOKUP +# +# default name for binding to an XML lookup is "xml_fetch" it can be overridden with :: +# params a switch_event with all the relevant data about what is being searched for in the XML registry. +# +def xml_fetch(params): + + xml = ''' + + +
+ + + + + + + + +
+
+''' + + return xml + + + +