Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] ODBC through JS

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
xtpl.gayatri at gmail.com
Guest





PostPosted: Mon Oct 06, 2008 8:44 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Hi all,

I want to connect to a remote database using javascript.
When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC
I did the steps what are mentioned there, namely:

  1. First download and install unixodbc. See below if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set.
  2. In the FreeSWITCH source directory, uncomment the languages/mod_spidermonkey_odbc line within the build/modules.conf file.
  3. Compile core odbc support into freeswitch.
Quote:
./configure --enable-core-odbc-support make all install
The ./configure doesnt give any error nor does the build

When i restart freeswitch, i can see this:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory** Will my script run inspite of this?
What am i not doing - something i should do more?

--
Regards,
Gayatri Kulkarni
Back to top
miconda at gmail.com
Guest





PostPosted: Mon Oct 06, 2008 10:42 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Hello,

On 10/06/08 16:42, Gayatri Kulkarni wrote:
Quote:
Hi all,

I want to connect to a remote database using javascript.
When i searched the WIki I got this page:
http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC
I did the steps what are mentioned there, namely:

1. First download and install unixodbc. See below
<http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc>
if you are struggling with this step. Make sure to install
headers, libraries and source for the unixodbc library set.
2. In the FreeSWITCH source directory, uncomment the
|languages/mod_spidermonkey_odbc| line within the
|build/modules.conf| file.
3. Compile core odbc support into freeswitch.

./configure --enable-core-odbc-support
make all install

The ./configure doesnt give any error nor does the build

When i restart freeswitch, i can see this:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error
Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so
**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open
shared object file: No such file or directory**

Will my script run inspite of this?
What am i not doing - something i should do more?
The line to load the |mod_spidermonkey_odbc has to be in
|spidermonkey.conf.xml, not in modules.conf.xml.

The info is somewhere there on the wiki, I missed it as well some time
ago ...

Cheers,
Daniel

--
Daniel-Constantin Mierla
http://www.asipto.com


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mike at jerris.com
Guest





PostPosted: Mon Oct 06, 2008 10:49 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Your missing enable the module in spidermonkey.conf.xml


On Oct 6, 2008, at 9:42 AM, Gayatri Kulkarni wrote:
Quote:
connect to a remote database using javascript.
When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC
I did the steps what are mentioned there, namely:

  1. First download and install unixodbc. See below if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set.
  2. In the FreeSWITCH source directory, uncomment the languages/mod_spidermonkey_odbc line within the build/modules.conf file.
  3. Compile core odbc support into freeswitch.
Quote:
./configure --enable-core-odbc-support make all install
The ./configure doesnt give any error nor does the build

When i restart freeswitch, i can see this:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**Will my script run inspite of this?
What am i not doing - something i should do more?
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Oct 07, 2008 12:25 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

I did that too
I missed to mention it here

On Mon, Oct 6, 2008 at 9:03 PM, Michael Jerris <mike@jerris.com (mike@jerris.com)> wrote:
Quote:
Your missing enable the module in spidermonkey.conf.xml



On Oct 6, 2008, at 9:42 AM, Gayatri Kulkarni wrote:

Quote:
connect to a remote database using javascript.
When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC
I did the steps what are mentioned there, namely:

  1. First download and install unixodbc. See below if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set.
  2. In the FreeSWITCH source directory, uncomment the languages/mod_spidermonkey_odbc line within the build/modules.conf file.
  3. Compile core odbc support into freeswitch.
Quote:
./configure --enable-core-odbc-support make all install
The ./configure doesnt give any error nor does the build

When i restart freeswitch, i can see this:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so
**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**
Will my script run inspite of this?
What am i not doing - something i should do more?







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Regards,
Gayatri Kulkarni
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Oct 07, 2008 12:37 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Thanks for pointing out Daniel,

It's not in modules.conf.xml
it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/mod_spidermonkey_odbc
The problem is, when i run make all install, it's not creating the .so

See the error message:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**

is there a way to compile and install this module separately?

--
Regards,
Gayatri Kulkarni

On Mon, Oct 6, 2008 at 9:01 PM, Daniel-Constantin Mierla <miconda@gmail.com (miconda@gmail.com)> wrote:
Quote:
Hello,

On 10/06/08 16:42, Gayatri Kulkarni wrote:
Quote:
Hi all,

I want to connect to a remote database using javascript.
When i searched the WIki I got this page:
http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC
I did the steps what are mentioned there, namely:


Quote:
1. First download and install unixodbc. See below
<http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc>
if you are struggling with this step. Make sure to install
headers, libraries and source for the unixodbc library set.

Quote:
2. In the FreeSWITCH source directory, uncomment the
|languages/mod_spidermonkey_odbc| line within the
|build/modules.conf| file.

Quote:
3. Compile core odbc support into freeswitch.

./configure --enable-core-odbc-support
make all install

The ./configure doesnt give any error nor does the build

When i restart freeswitch, i can see this:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error
Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so
**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open
shared object file: No such file or directory**

Will my script run inspite of this?
What am i not doing - something i should do more?

The line to load the |mod_spidermonkey_odbc has to be in
|spidermonkey.conf.xml, not in modules.conf.xml.

The info is somewhere there on the wiki, I missed it as well some time
ago ...

Cheers,
Daniel

--
Daniel-Constantin Mierla
http://www.asipto.com


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Oct 07, 2008 12:43 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Make sure in your root src folder modules.conf has it uncommented its built from build/modules.conf.in when you configure. Then "make mod_spidermonkey_odbc-install" also don't use make all install... use just "make install" or "make current" if you're updating.

/b

On Oct 7, 2008, at 12:35 AM, Gayatri Kulkarni wrote:
Quote:
Thanks for pointing out Daniel,

It's not in modules.conf.xml
it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/mod_spidermonkey_odbc
The problem is, when i run make all install, it's not creating the .so

See the error message:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**

is there a way to compile and install this module separately?
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Oct 07, 2008 12:54 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Still the same Sad
It builds installs the shard library at {prefix}/freeswitch/lib directory
while all the modules .so files are in {prefix}/freeswitch/mod directory
If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!

--
Regards,
Gayatri Kulkarni


On Tue, Oct 7, 2008 at 11:11 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Make sure in your root src folder modules.conf has it uncommented its built from build/modules.conf.in when you configure. Then "make mod_spidermonkey_odbc-install" also don't use make all install... use just "make install" or "make current" if you're updating.

/b

On Oct 7, 2008, at 12:35 AM, Gayatri Kulkarni wrote:

Quote:
Thanks for pointing out Daniel,

It's not in modules.conf.xml
it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/mod_spidermonkey_odbc
The problem is, when i run make all install, it's not creating the .so

See the error message:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so
**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**

is there a way to compile and install this module separately?






_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Oct 07, 2008 1:04 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Thanks Brian!
make install worked Smile


--
Regards,
Gayatri Kulkarni

On Tue, Oct 7, 2008 at 11:11 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Make sure in your root src folder modules.conf has it uncommented its built from build/modules.conf.in when you configure. Then "make mod_spidermonkey_odbc-install" also don't use make all install... use just "make install" or "make current" if you're updating.

/b

On Oct 7, 2008, at 12:35 AM, Gayatri Kulkarni wrote:

Quote:
Thanks for pointing out Daniel,

It's not in modules.conf.xml
it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/mod_spidermonkey_odbc
The problem is, when i run make all install, it's not creating the .so

See the error message:
2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so
**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**

is there a way to compile and install this module separately?






_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Oct 07, 2008 1:04 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml

/b

On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:
Quote:
Still the same Sad
It builds installs the shard library at {prefix}/freeswitch/lib directory
while all the modules .so files are in {prefix}/freeswitch/mod directory
If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!

--
Regards,
Gayatri Kulkarni
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Oct 07, 2008 7:09 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Guys,
I am now having this problem:
when i run my script i get this error -

freeswitch@fedora> 2008-10-07 17:27:24 [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
my ../etc/odbc.ini looks like this:[postgres]Driver = PostgreSQL SERVER = localhostPORT = 5432 DATABASE = postgresUserName = <username> Password = <password>
and ../etc/odbcinst.ini:
[ODBC] Trace = yesTraceFile = /tmp/trace.log [PostgreSQL]Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.soSetup = /usr/local/lib/libodbpsqlS.so UsageCount = 1000000
--
Regards,
Gayatri Kulkarni

On Tue, Oct 7, 2008 at 11:32 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml

/b

On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:

Quote:
Still the same Sad
It builds installs the shard library at {prefix}/freeswitch/lib directory
while all the modules .so files are in {prefix}/freeswitch/mod directory
If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!

--
Regards,
Gayatri Kulkarni






_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Tue Oct 07, 2008 8:37 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

If i have to run my script on Windows m/c, will i still need unixODBC?
Is unixODBC available for windows???

i know i am sounding stupid
But i need to get this done
Back to top
mike at jerris.com
Guest





PostPosted: Tue Oct 07, 2008 9:28 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

On Oct 7, 2008, at 9:34 AM, Gayatri Kulkarni wrote:

Quote:
If i have to run my script on Windows m/c, will i still need unixODBC?
Is unixODBC available for windows???

On windows we use the native odbc interfaces and it builds by default
(no need to do anything special to enable it)

Mike


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Wed Oct 08, 2008 5:04 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Well,
it didnt work as i hoped
first i had to add the DSN on my machine too for the remote database
then, when i did, it gave me this error:


freeswitch@Comp36> 2008-10-08 00:38:25 [ERR] switch_odbc.c:160 switch_odbc_handl e_connect() STATE: HY000 CODE 63 ERROR: [Microsoft][ODBC Microsoft Access Driver]General error Not enough information to connect to this DSN with SQLConnect. Use SQLDriverConnect.2008-10-08 00:38:25 [ERR] mod_spidermonkey_odbc.c:233 odbc_exec() Database is no t connected!2008-10-08 00:38:26 [ERR] mod_spidermonkey_odbc.c:289 odbc_next_row() Database i s not connected!
Any idea - what's happening?

Appreciating all your help,
--
Regards,
Gayatri Kulkarni

On Tue, Oct 7, 2008 at 7:23 AM, Michael Jerris <mike@jerris.com (mike@jerris.com)> wrote:
Quote:

On Oct 7, 2008, at 9:34 AM, Gayatri Kulkarni wrote:

Quote:
If i have to run my script on Windows m/c, will i still need unixODBC?
Is unixODBC available for windows???


On windows we use the native odbc interfaces and it builds by default
(no need to do anything special to enable it)

Mike



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Back to top
xtpl.gayatri at gmail.com
Guest





PostPosted: Fri Oct 10, 2008 5:46 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

Guys please help me on this
I am still getting that error

freeswitch@fedora> 2008-10-07 17:27:24 [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

I can connect to the database successfully using isql -v commandI can't figure out whats going on Here's my script:

use("ODBC");

var DSN="PostgreSQL";
var DB_USER="<username>";
var DB_PASS="<password>";

var db = new ODBC(DSN, DB_USER, DB_PASS);
//console_log("notice",DB.path+"\n");
if(db.connect()){
console_log("notice","Connected to DB");
}
else{
console_log("notice","Still probs");
}

Here's the output:
freeswitch@fedora> 2008-10-10 15:41:32 [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

2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs

Please Help me Regards,Gayatri Kulkarni
On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com (xtpl.gayatri@gmail.com)> wrote:
Quote:
Guys,
I am now having this problem:
when i run my script i get this error -

freeswitch@fedora> 2008-10-07 17:27:24 [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
my ../etc/odbc.ini looks like this:[postgres]Driver = PostgreSQL SERVER = localhostPORT = 5432 DATABASE = postgresUserName = <username> Password = <password>
and ../etc/odbcinst.ini:
[ODBC] Trace = yesTraceFile = /tmp/trace.log [PostgreSQL]Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.soSetup = /usr/local/lib/libodbpsqlS.so UsageCount = 1000000
--
Regards,
Gayatri Kulkarni


On Tue, Oct 7, 2008 at 11:32 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:


Quote:

thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml

/b

On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:

Quote:
Still the same Sad
It builds installs the shard library at {prefix}/freeswitch/lib directory
while all the modules .so files are in {prefix}/freeswitch/mod directory
If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!

--
Regards,
Gayatri Kulkarni








_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org









--
Regards,
Gayatri Kulkarni
Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Fri Oct 10, 2008 6:13 am    Post subject: [Freeswitch-users] ODBC through JS Reply with quote

your DSN name is "postgres" and not "PostgreSQL"

On Fri, Oct 10, 2008 at 12:34 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com (xtpl.gayatri@gmail.com)> wrote:
Quote:
Guys please help me on this
I am still getting that error

freeswitch@fedora> 2008-10-07 17:27:24 [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

I can connect to the database successfully using isql -v commandI can't figure out whats going on Here's my script:

use("ODBC");

var DSN="PostgreSQL";
var DB_USER="<username>";
var DB_PASS="<password>";

var db = new ODBC(DSN, DB_USER, DB_PASS);
//console_log("notice",DB.path+"\n");
if(db.connect()){
console_log("notice","Connected to DB");
}
else{
console_log("notice","Still probs");
}

Here's the output:
freeswitch@fedora> 2008-10-10 15:41:32 [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

2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs

Please Help me Regards,Gayatri Kulkarni
On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com (xtpl.gayatri@gmail.com)> wrote:
Quote:
Guys,
I am now having this problem:
when i run my script i get this error -

freeswitch@fedora> 2008-10-07 17:27:24 [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
my ../etc/odbc.ini looks like this:[postgres]Driver = PostgreSQL SERVER = localhostPORT = 5432 DATABASE = postgresUserName = <username> Password = <password>
and ../etc/odbcinst.ini:
[ODBC] Trace = yesTraceFile = /tmp/trace.log [PostgreSQL]Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.soSetup = /usr/local/lib/libodbpsqlS.so UsageCount = 1000000
--
Regards,
Gayatri Kulkarni


On Tue, Oct 7, 2008 at 11:32 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:


Quote:

thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml

/b

On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:

Quote:
Still the same Sad
It builds installs the shard library at {prefix}/freeswitch/lib directory
while all the modules .so files are in {prefix}/freeswitch/mod directory
If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!

--
Regards,
Gayatri Kulkarni








_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org









--
Regards,
Gayatri Kulkarni


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services