Hi Anthony,<br><br>Yea, I'm still looking at the parameters passing between pythons scripts and freeswitch code. So I am wondering, how we did it in perl scripts.<br><br>I'll stop by IRC tonight then....<br><br>JK<br><br><div>
<span class="gmail_quote">On 11/13/06, <b class="gmail_sendername">Anthony Minessale</b> &lt;<a href="mailto:anthmct@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anthmct@yahoo.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;">

<div></div>
<div>Hi,</div>
<div>&nbsp;</div>
<div>The swig code in there builds a binary module against libfreeswitch.</div>
<div>so if you load that module from the embedded python interpreter&nbsp;you can</div>
<div>use those&nbsp;calls from your script to call freeswitch code.</div>
<div>&nbsp;</div>
<div>stop&nbsp;by irc if you&nbsp;want some more info.</div>
<div><br>&nbsp;</div>
<div>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.cluecon.com/</a><br><br>AIM: anthm<br><a href="mailto:MSN:anthony_minessale@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">MSN:anthony_minessale@hotmail.com</a><br>JABBER:<a href="mailto:anthony.minessale@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

anthony.minessale@gmail.com</a><br>IRC: <a href="http://irc.freenode.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">irc.freenode.net</a> #freeswitch</div>
<div><br>FreeSWITCH Developer Conference<br><a href="mailto:sip:888@66.250.68.194" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip:888@66.250.68.194</a><br>iax:guest@66.250.68.194/888<br><a href="mailto:googletalk:freeswitch@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

googletalk:freeswitch@gmail.com</a><br>pstn:712-432-7800</div>
<div style="font-size: 12pt; font-family: courier,monaco,monospace,sans-serif;"><br><br>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><span>----- Original Message ----<br>From: Johny Kadarisman &lt;<a href="mailto:jkr888@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

jkr888@gmail.com</a>&gt;<br>To: <a href="mailto:freeswitch-dev@lists.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">freeswitch-dev@lists.freeswitch.org</a><br>Sent: Monday, November 13, 2006 9:49:16 AM
<br>Subject: [Freeswitch-dev] Fwd: mod_python load error?<br><br>Hi all, <br><br>I made a few changes in mod_python. Now at least, I can load &amp; 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 &quot;Hello World!\n&quot;<br>print sys.path<br>print dir()<br><br>fs_consol_log(&quot;1&quot;, &quot;Hello World from inside 
mypython.py.\n&quot;)<br><br>============================= <br><br>2006-11-11 00:34:33 [DEBUG] switch_core.c:2497 switch_core_standard_on
<div>_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" rel="nofollow" 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" rel="nofollow" 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></span><span>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> &lt;<a href="mailto:brian.west@mac.com" rel="nofollow" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

brian.west@mac.com</a>&gt;<br>Date: Nov 11, 2006 10:21 PM <br>Subject: Re: [Freeswitch-dev] mod_python load error?<br>To: Johny Kadarisman &lt;<a href="mailto:jkr888@gmail.com" rel="nofollow" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

jkr888@gmail.com</a>&gt;<br><br></span>
</span><div><span>Populate the changes into your branch.&nbsp; 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.&nbsp; Get on IRC and talk to xachen, MikeJ and anthm. 
<div><br></div>
<div>/b</div></span><span>
<div><br></div>
<div>
<div><span>
<div>On Nov 11, 2006, at 9:15 PM, Johny Kadarisman wrote:</div><br>
</span><span><blockquote type="cite"><span style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; border-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></span></div><br></div></span></div><span>
<div>_______________________________________________<br>Freeswitch-dev mailing list<br><a href="mailto:Freeswitch-dev@lists.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Freeswitch-dev@lists.freeswitch.org
</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>UNSUBSCRIBE:
<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.freeswitch.org</a></div></span></div><br></div></div><br></div>
<br>_______________________________________________<br>Freeswitch-dev mailing list<br><a href="mailto:Freeswitch-dev@lists.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Freeswitch-dev@lists.freeswitch.org
</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>UNSUBSCRIBE:
<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.freeswitch.org</a><br><br><br></blockquote></div><br>