jswong
April 11, 2005, 9:48am
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.
zmanea
April 11, 2005, 3:02pm
2
It is usually located in /var/log/asterisk/cdr-csv/Master.csv
jswong
April 11, 2005, 3:36pm
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?
natas
April 11, 2005, 3:55pm
4
zmanea
April 11, 2005, 4:02pm
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
jswong
April 12, 2005, 7:11am
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.
syvo
April 12, 2005, 8:58am
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.