CDR - Mirror writing in MySQL


I’m having an annoying issue with the CDR in Asterisk 11.3 (lastest). I’m using the odbc (

After the call ends, it works well and a line with all the call details is inserted in my MySQL database. The problem I have is that a second line is also inserted with a calldate equals to 0000-00-00 00:00:00

I don’t need this second line, I found a post in a forum saying that it was because of a double MySQL instance or something like that. I don’t really understand so I rebooted my server but the problem persists.

Does anyone have an idea ?

Thank you very much,


I have no idea about this issue, and is really rare why the second line there is no time , i can provide you a diff way for write Asterisk CDR on MYSQL

Hi Ambio,

Yes could you please tell me how you write the CDR in MySQL please ? I’m using the Asterisk version 11.3

Thanks !

Addons are now configured using the menuselect utility. … UsingMySQL