There is a big chance some of your problems can come from your system copy of python.<br>This is one of the reasons we were against using system libs because you need python built a certain way to<br>work right with embedded code.<br>
<br>If you really want to get to the bottom of it you may want to explore installing a non standard copy of python the way <br>we used to do and compare results.<br><br><div class="gmail_quote">On Wed, Jan 28, 2009 at 9:16 PM, Michael S Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Sent from my iPhone<br>
<br>
On Jan 28, 2009, at 6:41 PM, Brian Deacon &lt;<a href="mailto:bdeacon@highergear.com">bdeacon@highergear.com</a>&gt;<br>
wrote:<br>
<div><div></div><div class="Wj3C7c"><br>
&gt; Greetings,<br>
&gt;<br>
&gt; So I see from nabble and on the wiki that others have had problems<br>
&gt; with<br>
&gt; sqlalchemy and the hangup hook, but I appear to be having a more basic<br>
&gt; problem.<br>
&gt;<br>
&gt; I&#39;m running FS 1.0.2, python 2.4.3, and SqlAlchemy 0.4.7<br>
&gt;<br>
&gt; Here&#39;s an extension in my public.xml that works:<br>
&gt; &nbsp; &nbsp;&lt;extension name=&quot;Python_Test_On_5186&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot;<br>
&gt; expression=&quot;^6468715186$&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;set&quot;<br>
&gt; data=&quot;group_confirm_file=voicemail/8000/vm-hello.wav&quot; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;set&quot; data=&quot;group_confirm_key=4&quot; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;set&quot; data=&quot;call_timeout=60&quot; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;set&quot; data=&quot;destination_number_python=<br>
&gt; ${python(callcontrol.routing.DummyRouteHandler)}&quot; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;bridge&quot;<br>
&gt; data=&quot;${destination_number_python}&quot; /&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
&gt; &nbsp; &nbsp;&lt;/extension&gt;<br>
&gt;<br>
&gt; With this silly DummyRouteHandler.py:<br>
&gt; import os<br>
&gt; from freeswitch import *<br>
&gt; #import sqlalchemy<br>
&gt;<br>
&gt; def fsapi(session, stream, env, args):<br>
&gt; &nbsp; &nbsp;stream.write(&#39;sofia/internal/1000%10.48.5.207&#39;)<br>
&gt;<br>
&gt; (Note the commented out sqlalchemy import. &nbsp;Uncommenting the import<br>
&gt; gets<br>
&gt; me an &quot;error importing module&quot; or &quot;error reloading module&quot; in the<br>
&gt; fs_cli<br>
&gt; output)<br>
&gt;<br>
&gt; Oooh, and just now trying to reproduce I got my first crash.<br>
&gt;<br>
&gt; Thoughts?<br>
&gt;<br>
<br>
</div></div>Use Lua? ;)<br>
Seriously, Lua is a breeze to learn and is more stable than Python.<br>
Python is *not* designed to be embedded however Lua is designed<br>
precisely for that reason. Think WoW.<br>
<br>
Other than that I believe that your experiences with Python might help<br>
the devs uncover more issues. Please visit the &quot;reporting bugs&quot; page<br>
on the wiki and start collecting the information that will help them<br>
solve this one.<br>
<font color="#888888"><br>
-MC<br>
</font><div><div></div><div class="Wj3C7c"><br>
&gt; Brian<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>