[asterisk-users] Asterisk 1.8.13.0 / problem with cdr logging (mysql, odbc)

James Sharp james at fivecats.org
Mon Jun 18 14:49:38 CDT 2012


On 6/18/2012 11:52 AM, Thorsten Göllner wrote:
> Hi,
>
> I am trying now for over 4 hours setting up cdr-logging via odbc into a
> mysql database. But with no success. Do you have any hint for me?
>

*SNIP*

> But after a call hangup I get the following error:
> cdr_odbc.c: Unable to retrieve database handle. CDR failed.
>
> What is going wrong here, please?

The DSN that you specify in cdr_odbc.con should be the DSN you 
configured in res_odbc.conf, in this case "mysql" versus "MySQL-asterisk".

I beat head against the desk for hours because of this same issue.



More information about the asterisk-users mailing list