<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Problem with Spider Monkey</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Open a jira on this sounds like a bug in the package<BR>
<BR>
<BR>
On 5/8/13 4:00 AM, &quot;AKKy&quot; &lt;<a href="asifk16@gmail.com">asifk16@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
Hi All<BR>
<BR>
&nbsp;I have a problem with connecting to a database from LUA using ODBC. I have noticed that when my freeswitch starts it doesn't load the spider monkey module. I did the following:<BR>
<BR>
Installed Freeswitch using debian repository from &quot;deb <a href="http://files.freeswitch.org/repo/deb/debian/">http://files.freeswitch.org/repo/deb/debian/</a> squeeze main&quot;. I installed the package freeswitch-meta-vanilla and freeswitch-spidermonkey<BR>
I copied the vanilla configuration from /usr/share/freeswitch/conf/vanilla/* to /etc/freeswitch folder<BR>
I configured MySQL DB ODBC as described in <a href="http://wiki.freeswitch.org/wiki/Using_ODBC_in_the_core">http://wiki.freeswitch.org/wiki/Using_ODBC_in_the_core</a> and tested it through isql command and it connected fine<BR>
I started my freeswitch as root using the command /usr/bin/freeswitch and I got the below error<BR>
2013-05-07 22:19:33.922678 [CRIT] switch_loadable_module.c:1330 Error Loading module /usr/lib/freeswitch/mod/mod_spidermonkey.so<BR>
**/usr/lib/freeswitch/mod/mod_spidermonkey.so: cannot open shared object file: No such file or directory**<BR>
<BR>
I didn't see the file mod_spidermonkey.so in my /usr/lib/freeswitch folder but in /opt/freeswitch/mod folder. So I added a symbolic link from /opt/freeswitch/mod to /usr/lib/freeswitch/mod for below files:<BR>
      mod_spidermonkey_core_db.so<BR>
      mod_spidermonkey_odbc.so  <BR>
      mod_spidermonkey_socket.so<BR>
      mod_spidermonkey_curl.so<BR>
      mod_spidermonkey.so<BR>
      mod_spidermonkey_teletone.so<BR>
<BR>
Then I started freeswitch again and received the error below:<BR>
2013-05-07 22:30:25.813120 [CRIT] switch_loadable_module.c:1330 Error Loading module /usr/lib/freeswitch/mod/mod_spidermonkey.so<BR>
**/usr/lib/freeswitch/mod/mod_spidermonkey.so: undefined symbol: switch_core_session_locate**<BR>
<BR>
Also when I try to execute a LUA script with the code freeswitch.Dbh(&quot;odbc://freeswitch&quot;) in a LUA file then I got the error <BR>
<BR>
2013-05-07 23:05:46.915209 [ERR] switch_odbc.c:365 STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified<BR>
2013-05-07 23:05:46.915209 [CRIT] switch_core_sqldb.c:504 Failure to connect to PGSQL odbc://freeswitch!<BR>
<BR>
Any ideas what I am doing wrong? FYI - I am running on UBuntu<BR>
<BR>
Help will be appreciated.<BR>
<BR>
Regards<BR>
Asif<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
</SPAN></FONT>
</BODY>
</HTML>