Hello friends
to store the cdrs in mysql table, i used unixodbc and MyODBC , it’s kind of working and registers the dsn, i am using the instructions given on
voip-info.org/tiki-index.php … k+cdr+odbc
voip-info.org/tiki-index.php … +cdr+mysql
i get this message when running asterisk with debug switch it registerd the databse handle sucessfully
NOTICE[22807]: res_odbc.c:133 load_odbc_config: registered database handle ‘mysql1’ dsn->[MySQL-asterisk]
NOTICE[22807]: res_odbc.c:133 load_odbc_config: registered database handle ‘mysql2’ dsn->[MySQL-asterisk]
NOTICE[22807]: res_odbc.c:415 load_module: res_odbc loaded.
[res_config_odbc.so] => (ODBC Configuration)
NOTICE[22807]: config.c:888 ast_config_register: Registered Config Engine odbc
NOTICE[22807]: res_config_odbc.c:190 load_module: res_config_odbc loaded.
but i aslo get the following error later at the end
cdr_odbc.so] => (ODBC CDR Backend)
NOTICE[25255]: cdr_odbc.c:289 odbc_load_module: cdr_odbc: Logging uniqueid
– cdr_odbc: dsn is MySQL-asterisk
– cdr_odbc: username is user
– cdr_odbc: password is [secret]
> cdr_odbc: Error SQLConnect -1
ERROR[25255]: cdr_odbc.c:307 odbc_load_module: cdr_odbc: Unable to connect to datasource: MySQL-asterisk
– cdr_odbc: Unable to connect to datasource: MySQL-asterisk
nevertheless in the mysql cdr table the cdr’s are getting stored properly, but i wonder why i am still getting the above error
any advice would be appreciated
Diyanat