Call Detail Recording
Without even being told, Asterisk assumes that you want to store CDR information. Quite a smart machine, yes?
By default, Asterisk will create a CSV[77] file and place it in the folder /var/log/asterisk/cdr-csv/. To the naked eye, this file looks like a bit of a mess. If, however, you separate each line according to the commas, you will find that each line contains information about a particular call, and that the commas separate the following values:
accountcodeAssigned if the application
SetAccount()is used, or if configured for the channel in the channel configuration file (i.e., sip.conf). The account code is assigned on a per-channel basis.srcReceived Caller*ID (string, 80 characters).
dstDestination extension.
dcontextDestination context.
clidCaller*ID with text (80 characters).
channelChannel used (80 characters).
dstchannelDestination channel, if appropriate (80 characters).
lastappLast application, if appropriate (80 characters).
lastdataLast application data (arguments, 80 characters).
startStart of call (date/time).
answerAnswer of call (date/time).
endEnd of call (date/time).
durationTotal time in system, in seconds (integer), from dial to hangup.
billsecTotal time call is up, in seconds (integer), from answer to hangup.
dispositionWhat happened to the call (
ANSWERED,NO ANSWER,BUSY).amaflagsWhat flags to use (
DOCUMENTATION,BILL,IGNORE, etc.), specified on a per-channel basis, likeaccountcode. AMA flags stand for Automated Message Accounting flags, which ...