IP Security Forum

Author Topic: How to enable CDR-CSV logging in Asterisk 1.4.0  (Read 18395 times)

Offline tankwart

  • Sr. Member
  • ****
  • Posts: 165
  • Karma: 0
How to enable CDR-CSV logging in Asterisk 1.4.0
« on: Saturday, 24.02.2007 12:37 »
Starting CDR-CSV-Logging in a default installation of Asterisk 1.4.0 takes some additional steps that are neither documented nor obvious. Out of the box, Asterisk will update:
/var/log/asterisk/cdr-custom/Master.csv

but not the default CSV File:
/var/log/asterisk/cdr/Master.csv.

To start csv-logging into this file, you must edit /etc/asterisk/cdr.conf, remove the semicolon preceding [cdr] and also uncomment at least one of the following lines:

;usegmtime=yes ;log date/time in GMT
;loguniqueid=yes ;log uniqueid
,loguserfield=yes ;log user field

The parameter value is not important, it may be set to no, but it seems there must be at least one entry in the [cdr] section in order to start cdr-logging.
« Last Edit: Saturday, 24.02.2007 12:43 by tankwart »