To get the CDR working to MYSQL
yum install mysql-devel
cd /usr/src/asterisk-addons-1.4.10
nano cdr_addon_mysql.c
Change Line 132 "localtime_r(&cdr->start.tv_sec, &tm);"
to "ast_localtime(&cdr->start.tv_sec, &tm,NULL);" (without quotes)
./configure
make menuselect
Click right Arrow and deselect app_saycountpl and chan_ooh323
make
make install
If the new files cdr_addon_mysql.so and app_addon_sql_mysql.so are not in the /usr/lib/asterisk/modules directory copy them in and then restart asterisk
To check if working
asterisk -rvvv
module show like cdr_addon_mysql
it should respond with something like
Module Description Use Count
cdr_addon_mysql.so MySQL CDR Backend 0
1 modules loaded
also
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
CDR registered backend: mysql
Good luck.