Problem with cdr mysql addons

Hy, i’ve tryed to configure that my cdr store into mysql. I installed asterisk, mysql and all (all are new version from official site, and centos 5.2 embeded mysql and web server).

When i have to compile asterisk addons and choose cdr_addon_mysql i have following output:

XXX 1. cdr_addon_mysql

[color=red](I can’t choose anything)[/color]


XXX 1. app_addon_sql_mysql

My status from asterisk is:

centos52*CLI> cdr status
CDR logging: enabled
CDR mode: simple
CDR output unanswered calls: no
CDR registered backend: csv
CDR registered backend: cdr-custom
CDR registered backend: cdr_manager

Please help, what i have to do so that i have cdr into mysql.



Try running the following command:

to make sure the above file exists on your machine.
If it doesn’t, you will need MySQL development headers, to compile it.
On Ubuntu (or other Debian like system) to install it:

Also check if:

  1. /etc/asterisk/modules.conf has an entry like:


  1. /etc/asterisk/cdr_mysql.conf exists and has correct settings for your MySQL server.


Excuse me but I’m totally beginner! I’ve installed centos 5.2 and latest mysql 5.1 embedded into Cd’s.

I just followed instruction from and i don’t know how to recompile it!

If you would give me more help it would be wonderful!

Thx a lot!