Hi all, <br><br>I made a few changes in mod_python. Now at least, I can load &
execute simple python scripts. Haven't test much yet, but its execute
following scripts:<br><br><br>========================<br><br>import sys
<br>from _freeswitch import *<br><br>print "Hello World!\n"<br>print sys.path<br>print dir()<br><br>fs_consol_log("1", "Hello World from inside mypython.py.\n")<br><br>=============================
<br><br>2006-11-11 00:34:33 [DEBUG] switch_core.c:2497 switch_core_standard_on<div id="mb_5">_execute() Standard EXECUTE<br>2006-11-11 00:34:33 [NOTICE] switch_core.c:2506 switch_core_standard_on_execute() Execute python(/usr/local/freeswitch/mypython.py)
<br>Hello World!<br><br>['/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/HTMLgen', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/PIL', '/usr/lib/python2.4/site-packages/cairo', '/usr/lib/python2.4/site-packages/gst-
0.10', '/usr/lib/python2.4/site-packages/gtk-2.0']<br>['__builtins__',
'__doc__', '__file__', '__name__', 'fs_channel_answer',
'fs_channel_get_variable', 'fs_channel_hangup',
'fs_channel_pre_answer', 'fs_channel_set_state',
'fs_channel_set_variable', 'fs_consol_clean', 'fs_consol_log',
'fs_console_loop', 'fs_core_destroy', 'fs_core_init',
'fs_core_session_locate', 'fs_core_set_globals', 'fs_ivr_play_file',
'fs_ivr_play_file2', 'fs_loadable_module_init',
'fs_loadable_module_shutdown', 'fs_switch_channel_get_variable', 'fs_switch_channel_set_variable', 'fs_switch_ivr_collect_digits_callback', 'fs_switch_ivr_collect_digits_count', 'fs_switch_ivr_originate', 'fs_switch_ivr_record_file', 'fs_switch_ivr_session_transfer', 'fs_switch_ivr_sleep', 'fs_switch_ivr_speak_text', 'sys']
<br>2006-11-11 00:34:33 [DEBUG] switch_swig.c:96 fs_consol_log() Hello World from inside mypython.py.<br>2006-11-11 00:34:33 [NOTICE] switch_core.c:2558 switch_core_standard_on_execute() Hangup <a href="mailto:sofia/test/ubuntu@192.168.1.146" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sofia/test/ubuntu@192.168.1.146</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>2006-11-11 00:34:33 [INFO] switch_channel.c:973 switch_channel_perform_hangup() Kill <a href="mailto:sofia/test/ubuntu@192.168.1.146" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sofia/test/ubuntu@192.168.1.146
</a> [1]<br>2<br>====================<br><br><br></div>before committing to the trunk, I would like to make it consistence with perl implementation. Can some one send me example on how to use fs_* function in perl scripts. ie, how you pass uuid to perl, how you get sessions from uuid, etc. I'll try to make it work with python scripts.
<br><br>JK<br><br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Brian West</b> <<a href="mailto:brian.west@mac.com">brian.west@mac.com</a>><br>Date: Nov 11, 2006 10:21 PM
<br>Subject: Re: [Freeswitch-dev] mod_python load error?<br>To: Johny Kadarisman <<a href="mailto:jkr888@gmail.com">jkr888@gmail.com</a>><br><br></span><div style="">Populate the changes into your branch. Then alert MikeJ on IRC and he can pull them down.. Infact we can give you commit to the trunk for those modules if you like. Get on IRC and talk to xachen, MikeJ and anthm.
<div><br></div><div>/b</div><span class="q"><div><br></div><div><div><div>On Nov 11, 2006, at 9:15 PM, Johny Kadarisman wrote:</div><br><blockquote type="cite"><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
Anyway, thats the progress so far :)<br>If I like to submit this fixes to the trunk, what is the procedure?</span></blockquote></div><br></div></span></div>