<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=DE link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>Yes, but why isn&#8217;t
it found?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>My odbc.ini
configuration:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>[fs01_odbc]<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>Driver=MySQL<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>SERVER=localhost<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>PORT=3306<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>DATABASE=freeswitch<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>Socket =
/var/lib/mysql/mysql.sock<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>Javascript:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>&#8230;<o:p></o:p></span></font></p>

<pre><font size=2 color="#003366" face=Arial><span lang=EN-GB style='font-size:  10.0pt;font-family:Arial;color:#003366'>use(&quot;ODBC&quot;);<o:p></o:p></span></font></pre><pre><font  size=2 color="#003366" face=Arial><span lang=EN-GB style='font-size:10.0pt;  font-family:Arial;color:#003366'>  var DSN=&quot;fs01_odbc&quot;;<o:p></o:p></span></font></pre><pre><font  size=2 color="#003366" face=Arial><span lang=EN-GB style='font-size:10.0pt;  font-family:Arial;color:#003366'>  var DB_USER=&quot;XXXXX&quot;;<o:p></o:p></span></font></pre><pre><font  size=2 color="#003366" face=Arial><span lang=EN-GB style='font-size:10.0pt;  font-family:Arial;color:#003366'>  var DB_PASS=&quot;YYYYY&quot;;<o:p></o:p></span></font></pre><pre><font  size=2 color="#003366" face=Arial><span lang=EN-GB style='font-size:10.0pt;  font-family:Arial;color:#003366'>  var db = new ODBC(DSN, DB_USER, DB_PASS);<o:p></o:p></span></font></pre><pre><font  size=2 color="#003366" face=Arial><span lang=EN-GB style='font-size:10.0pt;  font-family:Arial;color:#003366'>  </span></font><font color="#003366"  face=Arial><span style='font-family:Arial;color:#003366'>db.connect();<o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=2 color="#003366" face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:#003366'>&#8230;..<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB  style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3  face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;  font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font size=2  face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b><span  style='font-weight:bold'>Im Auftrag von </span></b>Ken Rice<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Mittwoch, 7. Januar 2009
17:42<br>
<b><span style='font-weight:bold'>An:</span></b>
freeswitch-users@lists.freeswitch.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> Re: [Freeswitch-users] no
file mod_spidermonkey_odbc.so</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:  12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Calibri><span  style='font-size:11.0pt;font-family:Calibri'>Well your error tells you
explicity DSN not found...<br>
<br>
<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=2  face=Calibri><span style='font-size:11.0pt;font-family:Calibri'>

<hr size=3 width="95%" align=center>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Calibri><span style='font-size:11.0pt;  font-family:Calibri;font-weight:bold'>From: </span></font></b><font size=2  face=Calibri><span style='font-size:11.0pt;font-family:Calibri'>fidibus83
&lt;fidibus83@aol.com&gt;<br>
<b><span style='font-weight:bold'>Reply-To: </span></b>&lt;freeswitch-users@lists.freeswitch.org&gt;<br>
<b><span style='font-weight:bold'>Date: </span></b>Wed, 7 Jan 2009 17:31:54
+0100<br>
<b><span style='font-weight:bold'>To: </span></b>&lt;freeswitch-users@lists.freeswitch.org&gt;<br>
<b><span style='font-weight:bold'>Subject: </span></b>Re: [Freeswitch-users] no
file mod_spidermonkey_odbc.so<br>
<br>
</span></font><font size=2 color="#003366" face=Arial><span style='font-size:  10.0pt;font-family:Arial;color:#003366'>I have another problem!<br>
&nbsp;<br>
I want to connect to a mysql database through javascript.<br>
&nbsp;<br>
I get this error:<br>
[ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR:
[unixODBC] [Driver Manager]Data source name not found, and no default driver
specified<br>
[ERR] mod_spidermonkey_odbc.c:233 odbc_exec() Database is not connected!<br>
[ERR] mod_spidermonkey_odbc.c:289 odbc_next_row() database is not connected!<br>
&nbsp;<br>
But when I test by running the utility isql the database is connected!<br>
&nbsp;<br>
What&#8217;s going wrong?<br>
&nbsp;</span></font><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3  face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;  font-weight:bold'>Von:</span></font></b><font size=2 face=Tahoma><span  style='font-size:10.0pt;font-family:Tahoma'>
freeswitch-users-bounces@lists.freeswitch.org [<a  href="mailto:freeswitch-users-bounces@lists.freeswitch.org%5d">mailto:freeswitch-users-bounces@lists.freeswitch.org]</a>
<b><span style='font-weight:bold'>Im Auftrag von </span></b>Chris Danielson<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Mittwoch, 7. Januar 2009
16:39<br>
<b><span style='font-weight:bold'>An:</span></b>
freeswitch-users@lists.freeswitch.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> Re: [Freeswitch-users] no
file mod_spidermonkey_odbc.so<br>
</span></font><br>
Anytime. &nbsp;Good luck.<br>
<br>
fidibus83 wrote: <br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:  Arial;color:navy'>Sorry Chris, my mistake. Mod_spidermonkey_odbc.so does exist
now. <br>
&nbsp;<br>
I wanted to said that I&#8217;m sorry for my stupid mistake that I uncomment
the wrong thing.<br>
&nbsp;<br>
But thank you very much for your help!<br>
&nbsp;</span></font><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3  face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;  font-weight:bold'>Von:</span></font></b><font size=2 face=Tahoma><span  style='font-size:10.0pt;font-family:Tahoma'>
freeswitch-users-bounces@lists.freeswitch.org [<a  href="mailto:freeswitch-users-bounces@lists.freeswitch.org%5d">mailto:freeswitch-users-bounces@lists.freeswitch.org]</a>
<b><span style='font-weight:bold'>Im Auftrag von </span></b>Chris Danielson<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Mittwoch, 7. Januar 2009
16:17<br>
<b><span style='font-weight:bold'>An:</span></b>
freeswitch-users@lists.freeswitch.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> Re: [Freeswitch-users] no
file mod_spidermonkey_odbc.so<br>
</span></font><br>
Fidibus,<br>
Make sure that you also have installed unixodbc. &nbsp;As shown here: <a  href="http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc">http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc</a><br>
<br>
Kind Regards,<br>
Chris<br>
<br>
fidibus83 wrote: <br>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:  Arial;color:navy'>Oh, I&#8217;m sorry.<br>
&nbsp;<br>
Should I comment mod_spidermonkey_odbc in root/freeswitch/build/modules.conf
again?<br>
&nbsp;</span></font><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3  face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span  style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font  size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
freeswitch-users-bounces@lists.freeswitch.org [<a  href="mailto:freeswitch-users-bounces@lists.freeswitch.org%5d">mailto:freeswitch-users-bounces@lists.freeswitch.org]</a>
<b><span style='font-weight:bold'>Im Auftrag von </span></b>Michael Jerris<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Mittwoch, 7. Januar 2009
15:15<br>
<b><span style='font-weight:bold'>An:</span></b>
freeswitch-users@lists.freeswitch.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> Re: [Freeswitch-users] no
file mod_spidermonkey_odbc.so<br>
</span></font><br>
you would need to modify the modules.conf in the root of the source dir, not in
the build dir.<br>
<font face=Tahoma><span style='font-family:Tahoma'><br>
</span></font><br>
<br>
<o:p></o:p></p>

</div>

</body>

</html>