Configure Kamailio with CDR-Stats and CDR-Pusher

In Kamailio,  CDR can be stored using Mysql with the `acc module` (www.kamailio.org/docs/modules/4.0.x/modules/acc.html). Therefore, you will need to configure Kamailio to store CDRs in Mysql then install CDR-Pusher on the Kamailio server to push CDRs to the CDR-Stats server.

Collect CDRs from Kamailio MYSQL Database

Kamailio and module acc can help you storing your CDRs to a Mysql database. Some instructions for the SQL schema and procedure can be found at http://siremis.asipto.com/install-accounting/

Siremis also have some documentation on how to setup accounting services: http://kb.asipto.com/siremis:install40x:accounting

You will end up with a Mysql cdr table similar to this one:
CREATE TABLE `cdrs` (
    `cdr_id` bigint(20) NOT NULL AUTO_INCREMENT,
    `src_username` varchar(64) NOT NULL DEFAULT ”,
    `src_domain` varchar(128) NOT NULL DEFAULT ”,
    `dst_username` varchar(64) NOT NULL DEFAULT ”,
    `dst_domain` varchar(128) NOT NULL DEFAULT ”,
    `dst_ousername` varchar(64) NOT NULL DEFAULT ”,