<div dir="ltr">I have uncommented the line <b>&#39;langages/mod_spidermonkey_odbc&#39; </b>from /usr/local/freeswitch/modules.conf and installed like the following<br><br>step1:-I have downloaded&nbsp; the unixodbc and put it in usr/local/freeswitch.<br>
step2:-I have installed like the following from the /usr/local/freeswitch<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a)<code>tar -xvzf unixODBC-2.2.12.tar.gz</code><br>step3:-In the path /usr/local/freeswitch/unixodbc-2.2.12 ,i have done<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b)<code>./configure --enable-gui=no<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c)</code><code>make<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; d)make install<br><br>step3:-In the path /usr/local/freeswitch,I have done </code><br><pre>a)./configure --enable-core-odbc-support<br>b)make all install<br><br>when doing the above steps <br>
a)./configure --enable-core-odbc-support<br>b)make all install, I am getting the lines <br><br>Making install in src<br>Making install in mod<br><br> is not a valid FreeSWITCH module dir, skipping it.....<br><br> is not a valid FreeSWITCH module dir, skipping it.....<br>
<br> After making all the above I have put a sample odbc.js in /usr/local/javascript/scripts and tried to run from the freeswitch console like jsrun odbc.js.<br><br>I am getting the following error:<br><br>freeswitch@localhost&gt; 2008-09-29 17:44:12 [ERR] mod_spidermonkey.c:3303 js_api_use() Error loading ODBC<br>
2008-09-29 17:44:12 [ERR] sample.js:11 mod_spidermonkey()  ReferenceError: ODBC is not defined<br><br>please let me know where i am wrong here.<br><br>Thanks.<br><br></pre><code><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br></code>&nbsp;&nbsp;&nbsp;&nbsp; <br><br><div class="gmail_quote">
On Fri, Sep 26, 2008 at 3:16 PM, David Knell <span dir="ltr">&lt;<a href="mailto:dave@3c.co.uk">dave@3c.co.uk</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;">



  

<div bgcolor="#ffffff" text="#000000">
Hi Preetha,<br>
<br>
You&#39;ve probably not compiled the module.&nbsp; Have a look in
/usr/src/freeswitch (or wherever your source is); you&#39;ll<br>
find a modules.conf there.&nbsp; Uncomment the line
&#39;langages/mod_spidermonkey_odbc&#39;, rebuild, reinstall and things<br>
might get better.<br>
<br>
--Dave<br>
<blockquote type="cite"><div><div></div><div class="Wj3C7c">
  <div>yes, I did ./configure --enable-core-odbc-support &amp;&amp;
make &amp;&amp; make install.When i gave make install during
installation,i found the following error:</div>
  <div>&nbsp;</div>
  <div>2008-09-26 19:37:19 [CRIT] switch_loadable_module.c:767
switch_loadable_module_load_file() Error Loading module
/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so<br>
**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open
shared object file: No such file or directory**<br>
  <br>
Thanks<br>
&nbsp;</div>
  <div><span class="gmail_quote">On 9/25/08, <b class="gmail_sendername">Raymond Chandler</b> &lt;<a href="mailto:intralanman@freeswitch.org" target="_blank">intralanman@freeswitch.org</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">if you built from source,
make sure you use the --enable-core-odbc-support option on your
./configure<br>
    <br>
like so<br>
./configure --enable-core-odbc-support &amp;&amp; make &amp;&amp; make
install<br>
    <pre cols="72">-Ray</pre>
    <br>
    <br>
preetha Ayyappan wrote:
    <blockquote type="cite">
      <div><span>
      <div dir="ltr">You mean i have to uncomment the line&nbsp; &lt;load
module=&quot;mod_spidermonkey_odbc&quot;/&gt;.?<br>
yes.I have uncommented that line.eventhough the same error occurs<br>
      <br>
      <div class="gmail_quote">On Thu, Sep 25, 2008 at 2:33 PM, Michael
Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</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;">
        <div><br>
On Sep 25, 2008, at 4:47 AM, preetha wrote:<br>
        <br>
&gt;<br>
&gt; Hi,<br>
&gt; when i try to run a sample odbc code from freeswitch console like<br>
&gt; freeswitch@localhost&gt; jsrun odbc.js<br>
&gt;<br>
&gt; I found the following error:<br>
&gt; API CALL [jsrun(odbc.js)] output:<br>
&gt; OK<br>
&gt;<br>
&gt; freeswitch@localhost&gt; 2008-09-25 19:44:35 [ERR]
mod_spidermonkey.c:<br>
&gt; 3303<br>
&gt; js_api_use() Error loading ODBC<br>
&gt; 2008-09-25 19:44:35 [ERR] odbc.js:11 mod_spidermonkey()<br>
&gt; ReferenceError:<br>
&gt; ODBC is not defined<br>
&gt;<br>
        <br>
&nbsp;</div>
Make sure you have mod_spidermonkey_odbc loaded in your<br>
spidermonkey.conf.xml file<br>
        <br>
Mike<br>
        <div>
        <div><br>
        <br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
        <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
&nbsp;</div>
        </div>
      </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
-- <br>
Preetha.A<br>
&nbsp;</div>
      </span></div>
      <pre><hr size="4" width="90%"><span>
_______________________________________________
Freeswitch-users mailing list
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a>
  </span></pre>
    </blockquote>
    </div>
    <br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
    <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
    <br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Preetha.A
  </div></div><pre><hr size="4" width="90%"><div class="Ih2E3d">
_______________________________________________
Freeswitch-users mailing list
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
  </div></pre>
</blockquote>
<br>
<br>
<pre cols="72">-- 
David Knell, Director, 3C Limited
T: 020 8114 8901  F: 020 3002 7257  M: 001 415 630 3031
<a href="http://www.3c.co.uk" target="_blank">http://www.3c.co.uk</a> </pre>
</div>

<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Preetha.A<br>
</div>