[asterisk-users] asterisk 1.6 enable cdr_mysql

Joseph syscon780 at gmail.com
Fri Oct 30 10:46:09 CDT 2009


Thanks Prince (good links) and Tilghman.
I'm using Gentoo installation of Asterisk-1.6.1.8-r1 that just showed up on portage.
I've emerged(installed) asterisk-addons and this file usually creates necessary drivers and copy cdr_mysql.conf file into /etc/asterisk (it worked in past 
verions 1.2 and 1.4) but this version failed to create the cdr_mysql.conf in asterisk directory.

The drivers are loaded OK and checking "modules show" is showing the correct drivers are loaded:
cdr_addon_mysql.so - MySQL CDR Backend
app_addon_sql_mysql.so         Simple Mysql Interface
res_config_mysql.so            MySQL RealTime Configuration Driver

I've copied manually my old cdr_mysql.conf from asterisk 1.2 and 1.4 (I've been using)
eg.
[global]
   hostname=127.0.0.1
   dbname=asteriskcdrdb
   table=cdr
   password=my_password
   user=asteriskcdruser

but this doesn't work, records are not being recorded in mysql-cdr (mysql is up and running).
So it is something in addition to cdr_mysql.conf file; asterisk -vvvvvr is not showing any errors, and I don't know how else to test it? 

I've filed a bug with Gentoo.

--
Joseph


On 10/30/09 08:48, Tilghman Lesher wrote:
>On Friday 30 October 2009 01:05:26 Joseph wrote:
>> How to enable cdr_mysql.conf in Asterisk 1.6?
>>
>> I have installed asterisk-addons which compiled mysql support,
>> "module show" is showing "cdr_addon_mysql.so"
>>
>> but cdr_mysql.conf was not created in /asterisk directory
>>
>> Is there any configuration file to enable mysql support?
>> Comping cdr_mysql.conf from previous installation does not do anything,
>> calls aren't recorded.
>
>Don't forget to type 'make samples' after the 'make install' (in the addons
>source directory).
>
>--
>Tilghman Lesher
>Digium, Inc. | Senior Software Developer
>twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
>Check us out at: www.digium.com & www.asterisk.org
>
>_______________________________________________
>-- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
Joseph



More information about the asterisk-users mailing list