merge mod_python fixes from Johny Kadarisman <jkr888 at gmail.com>. mod_python actually works now, please report problems.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3366 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-11-14 06:13:04 +00:00
parent 7ee6fcecd2
commit f3ffaff015
4 changed files with 33 additions and 93 deletions

18
scripts/mytest.py Normal file
View File

@@ -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")