Call Detail Records


#1

Hi! I realised that there is no documentation on CDR. Would like to know what is the the call log and CDR. I need information like how long is each call, how many rings before answered, how many missed calls, date and time of the call, CallerID, etc. Can we get from Asterisk? Is it in the standard CDR/call log or we need to program?

Thanks for your help.


#2

It is usually located in /var/log/asterisk/cdr-csv/Master.csv


#3

Pardon my ignorance as I had not installed Asterisk yet. I presume all the call information, timing, lost, received, call waiting, etc are stored in Master.csv? Anyone had reviewed the file?


#4

voip-info.org/wiki-Asterisk+cdr+csv


#5

Per voip-info.org/wiki-Asterisk+billing the following fields are in the CDR file.

accountcode: What account number to use: account?, (string, 20 characters)

src: Caller*ID number (string, 80 characters)

dst: Destination extension (string, 80 characters)

dcontext: Destination context (string, 80 characters)

clid: Caller*ID with text (80 characters)

channel: Channel used (80 characters)

dstchannel: Destination channel if appropriate (80 characters)

lastapp: Last application if appropriate (80 characters)

lastdata: Last application data (arguments) (80 characters)

start: Start of call (date/time)

answer: Anwer of call (date/time)

end: End of call (date/time)

duration: Total time in system, in seconds (integer), from dial to hangup

billsec: Total time call is up, in seconds (integer), from answer to hangup

disposition: What happened to the call: ANSWERED, NO ANSWER, BUSY (on some CDR backends, e.g. ODBC, these may be integers)

amaflags: What flags to use: see amaflags: DOCUMENTATION, BILL, IGNORE etc, specified on a per channel basis like accountcode.

user field: A user-defined field, maximum 255 characters


#6

I notice that the log does not have details like the number of rings before the call was answered or abandoned. Any insights? Appreciated.


#7

[quote]# duration: Total time in system, in seconds (integer), from dial to hangup

billsec: Total time call is up, in seconds (integer), from answer to hangup

[/quote]

Number of seconds before the call was answered is something like duration minus billsec.