Welcome To FreeSWITCH

The World's First Cross-Platform Scalable FREE Multi-Protocol Soft Switch


FreeSWITCH is a scalable open source cross-platform telephony platform designed to route and interconnect popular communication protocols using audio, video, text or any other form of media.  It was created in 2006 to fill the void left by proprietary commercial solutions. FreeSWITCH also provides a stable telephony platform on which many telephony applications can be developed using a wide range of free tools. More

ODBC Support for Javascript

Submitted by admin on Fri, 02/23/2007 - 05:20
::

Using the new javascript sub modules we have now implemented mod_spidermonkey_odbc which makes it possible to use ODBC from IVR scripts.

Here is a small example script.

You should be able to do some really cool stuff with this module.

odbc issues

I'm trying to use the module but always freeswitch give me the error :

2008-08-24 14:53:14 [DEBUG] switch_odbc.c:145 switch_odbc_handle_connect() Connecting voshare
2008-08-24 14:53:14 [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

Pls note that from isql and/or odbcinst is working fine !
[bin]# odbcinst -s -q -l
[voshare]
[bin]#

--------------------------------------------------------------

[bin]#
[bin]# isql voshare
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>

any hints ?

Thanks