Well your error tells you explicity DSN not found...



From: fidibus83 <fidibus83@aol.com>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Wed, 7 Jan 2009 17:31:54 +0100
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so

I have another problem!
 
I want to connect to a mysql database through javascript.
 
I get this error:
[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
[ERR] mod_spidermonkey_odbc.c:233 odbc_exec() Database is not connected!
[ERR] mod_spidermonkey_odbc.c:289 odbc_next_row() database is not connected!
 
But when I test by running the utility isql the database is connected!
 
What’s going wrong?
 


Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Chris Danielson
Gesendet: Mittwoch, 7. Januar 2009 16:39
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so

Anytime.  Good luck.

fidibus83 wrote:
Sorry Chris, my mistake. Mod_spidermonkey_odbc.so does exist now.
 
I wanted to said that I’m sorry for my stupid mistake that I uncomment the wrong thing.
 
But thank you very much for your help!
 


Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Chris Danielson
Gesendet: Mittwoch, 7. Januar 2009 16:17
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so

Fidibus,
Make sure that you also have installed unixodbc.  As shown here: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc

Kind Regards,
Chris

fidibus83 wrote:
Oh, I’m sorry.
 
Should I comment mod_spidermonkey_odbc in root/freeswitch/build/modules.conf again?
 


Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Michael Jerris
Gesendet: Mittwoch, 7. Januar 2009 15:15
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so

you would need to modify the modules.conf in the root of the source dir, not in the build dir.