Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have upgraded PBX to Asterisk and now CDR files are not created. It looks that such logging is disabled:

Connected to Asterisk currently running on pbx2 (pid = 5824)
Verbosity is at least 3
pbx2*CLI> cdr show status
Call Detail Record (CDR) settings
    Logging:                    Disabled
    Mode:                       Simple

Asterisk shows that CDR modules are loaded:

pbx2*CLI> module show like cd
Module                         Description                              Use Count                 Asterisk Manager Interface CDR Backend   0                     Comma Separated Values CDR Backend       0                     Tell Asterisk to not maintain a CDR for  0                 Fork The CDR into 2 separate entities    0                    Call Detail Record (CDR) dialplan functi 0                  Customizable Comma Separated Values CDR  0
6 modules loaded

How to enable creating CDR csv files?

share|improve this question
up vote 0 down vote accepted

It seems there was bug in Asterisk Now. It needed /etc/asterisk/cdr.conf which was absent.

share|improve this answer

We had to follow some more steps.

We needed some CDR logging ASAP and our AsteriskNOW server did not have modules for MySQL CDR logging. We would not install new packages in a running, highly requested production server, so we relied on CSV logging.

To enable it is easy. First, we edit /etc/asterisk/cdr.conf (if it does not exist, we create it) adding a [csv] section. We added some more configuration on it as below, but apparently the important thing is to create the section.


Then, we edited /etc/asterisk/modules.conf for loading the module:

; Loading cdr
load =>

For enabling the logging immediately without restarting Asterisk, we called asterisk -vvvr and loaded the module:

voip*CLI> module load

Now every call is logged in /var/log/asterisk/cdr-csv/Master.csv.

It took us some time to get it working. This page proved itself as a useful reference.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.