[Freeswitch-branches] [commit] r3364 - freeswitch/branches/jkr888/trunk/scripts

Freeswitch SVN jkr888 at freeswitch.org
Mon Nov 13 23:21:31 EST 2006


Author: jkr888
Date: Mon Nov 13 23:21:30 2006
New Revision: 3364

Added:
   freeswitch/branches/jkr888/trunk/scripts/mytest.py

Log:
python test scripts


Added: freeswitch/branches/jkr888/trunk/scripts/mytest.py
==============================================================================
--- (empty file)
+++ freeswitch/branches/jkr888/trunk/scripts/mytest.py	Mon Nov 13 23:21:30 2006
@@ -0,0 +1,18 @@
+import sys 
+from _freeswitch import *
+
+print "Hello World"
+print sys.path
+print dir()
+print sys.argv
+
+uuid = sys.argv[0]
+fs_consol_log("1","test from my python program\n")
+fs_consol_clean("This is fs_consol_clean\n")
+fs_consol_clean("My uuid is " + uuid + "\n")
+
+session = fs_core_session_locate(uuid)
+
+fs_channel_answer(session)
+
+fs_switch_ivr_session_transfer(session, "1234", "XML", "default")



More information about the Freeswitch-branches mailing list