mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
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:
18
scripts/mytest.py
Normal file
18
scripts/mytest.py
Normal 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")
|
Reference in New Issue
Block a user