The “cdr_custom” module is loaded for CDRs. It is configured using the “cdr_custom.conf” file, and places files in the /var/log/asterisk/cdr-custom directory.
A sample file is included in the same directory as cdr.conf.sample. You also haven’t provided what is actually configured on your system for it, and did you look to see if a file is being created in the directory I gave?
[csv]
usegmtime=yes ; log date/time in GMT. Default is “no”
loguniqueid=yes ; log uniqueid. Default is “no”
loguserfield=yes ; log user field. Default is “no”
accountlogs=yes ; create separate log file for each account code. Default is “yes”
[mappings]
; Our CDR log will be written to /var/log/asterisk/cdr-custom/Master.csv
; with the following schema.
Master.csv => {CSV_QUOTE({CDR(clid)})},{CSV_QUOTE({CDR(src)})},{CSV_QUOTE({CDR(dst)})},{CSV_QUOTE({CDR(dcontext)})},{CSV_QUOTE({CDR(channel)})},{CSV_QUOTE({CDR(dstchannel)})},{CSV_QUOTE({CDR(lastapp)})},{CSV_QUOTE({CDR(lastdata)})},{CSV_QUOTE({CDR(start)})},{CSV_QUOTE({CDR(answer)})},{CSV_QUOTE({CDR(end)})},{CSV_QUOTE({CDR(duration)})},{CSV_QUOTE({CDR(billsec)})},{CSV_QUOTE({CDR(disposition)})},{CSV_QUOTE({CDR(amaflags)})},{CSV_QUOTE({CDR(accountcode)})},{CSV_QUOTE({CDR(uniqueid)})},{CSV_QUOTE({CDR(userfield)})},${CDR(sequence)}