[Asterisk-Users] app_dbodbc URGENT

AJ Grinnell agrinnell at crt.net
Thu Jul 22 10:19:22 MST 2004


I have been searching for the last two days and I cannot seem to set
Asterisk to work from a database, can someone please tell me what I am doing
wrong here?  Here are my files

[app_dbodbc.so] => (Database access functions for Asterisk extension logic)
  == Parsing '/etc/asterisk/odbc.conf': Found
       > app_dbodbc: dsn is MySQL-asterisk
       > app_dbodbc: username is asterisk
       > app_dbodbc: password is [secret]
       > app_dbodbc: Error SQLConnect -1
Jul 22 13:15:18 ERROR[8192]: app_dbodbc.c:441 odbc_load_module: app_dbodbc:
Unable to connect to datasource: MySQL-asterisk
       > app_dbodbc: Unable to connect to datasource: MySQL-asterisk
  == Registered application 'ODBCget'
  == Registered application 'ODBCput'
  == Registered application 'ODBCdel'
  == Registered application 'ODBCdeltree'

My odbc.conf
[global]
dsn = MySQL-asterisk
username = asterisk
password = ******

My odbc.ini
[ODBC Data Sources]
MySQL-asterisk   = Asterisk PBX

[MySQL-asterisk]
Driver       = /usr/local/lib/libmyodbc.so
Description  = Asterisk PBX
SERVER       = localhost
PORT         = 3306
USER         = asterisk
PASSWORD     = DIDO1223
DATABASE     = asterisk
TRACEFILE    = /tmp/odbc.trace
TRACE        = 1







More information about the asterisk-users mailing list