[Freeswitch-users] ODBC through JS

Gayatri Kulkarni xtpl.gayatri at gmail.com
Mon Oct 20 22:15:36 PDT 2008


freeswitch at hp30094686650.optimus.co.in> 2008-10-20 19:34:29 [ERR]
switch_odbc.c:160 switch_odbc_handle_connect() STATE: 01000 CODE 0 ERROR:
[unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmyodbc3.so' :
/usr/local/lib/libmyodbc3.so: file too short

check if your .so has read permissions
i recoomend re-installing unixODBC or get some other drivers, i.e. if any
provided by MySQL for ODBC

On Mon, Oct 20, 2008 at 8:39 PM, Baskar <yudha2008 at gmail.com> wrote:

> Hi,
>
> I have done all the changes but i cant able to run jsrun odbc.js
>
> freeswitch at hp30094686650.optimus.co.in> 2008-10-20 19:34:29 [ERR]
> switch_odbc.c:160 switch_odbc_handle_connect() STATE: 01000 CODE 0 ERROR:
> [unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmyodbc3.so' :
> /usr/local/lib/libmyodbc3.so: file too short
>
> 2008-10-20 19:34:29 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database
> is not connected!
> 2008-10-20 19:34:29 [ERR] odbc.js:9 mod_spidermonkey()  TypeError:
> session.hangup is not a function
>
> Some one correct me where i am wrong
>
> *odbc ini:*
> [ODBC Data Sources]
>
> myodbc      = MySQL ODBC 2.50 Driver DSN
> myodbc3     = MySQL ODBC 3.51 Driver DSN
>
>
> [myodbc]
> Driver       = /usr/local/lib/libmyodbc.so
> Description  = MySQL ODBC 2.50 Driver DSN
> SERVER       = localhost
> PORT         = 3306
> USER         = optimus
> Password     = optimus
> Database     = test
> OPTION       = 3
> SOCKET       =
>
>
> [myodbc3]
> Driver       = /usr/local/lib/libmyodbc3.so
> Description  = MySQL ODBC 3.51 Driver DSN
> SERVER       = localhost
> PORT         = 3306
> USER         = optimus
> Password     = optimus
> Database     = test
> OPTION       = 3
> SOCKET       =
>
>
> [Default]
> Driver       = /usr/local/lib/libmyodbc3.so
> Description  = MySQL ODBC 3.51 Driver DSN
> SERVER       = localhost
> PORT         = 3306
> USER         = optimus
> Password     =  optimus
>
>
> --
> Warm Regards,
> N.Baskar
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081021/983b538e/attachment-0002.html 


More information about the FreeSWITCH-users mailing list