[asterisk-users] cdr_odbc.c:174 odbc_log: Unable to retrieve database handle. CDR failed.

Joshua C. Colp jcolp at digium.com
Fri Dec 7 07:25:16 CST 2018


On Fri, Dec 7, 2018, at 9:19 AM, hw wrote:
> 
> Hi,
> 
> is cdr logging using odbc buggy?  I'im only getting an error 
> "cdr_odbc.c:174 odbc_log: Unable to retrieve database handle.  CDR failed.".
> 
> Connecting with isql to the datasource given in cdr_odbc.conf works just 
> fine, and using the database for sippeers also works.

This message is output when the "dsn" value provided in cdr_odbc.conf does not match a dsn/class (context name) configured in res_odbc.conf

You should confirm they match and if still encountering a problem then provide the configuration.

-- 
Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list