Displaying 1 result from an estimated 1 matches for "odbc_res".
2004 May 26
5
cdr_odbc with mysql on a remote server
I'm trying to add cdr_odbc.so to log my CDR data to a mysql DB. I've
managed to compile everything, and seem to almost be ready to head home.
I've added a small debug line to cdr_odbc.c as follows:
if((ODBC_res != SQL_SUCCESS) && (ODBC_res !=
SQL_SUCCESS_WITH_INFO))
{
if(option_verbose > 10)
ast_verbose( VERBOSE_PREFIX_4 "cdr_odbc: Error
SQLConnect %d\n", ODBC_res);
SQLGetDiagRec(SQL_HANDLE_DBC, ODBC_con, 1, ODBC_stat,
&a...