|
Home Resources Products
Developers |
Main • Cdrfile
Cdrfile module Cdrfile is a module that receive a "chan.cdr" message (maybe from cdrbuild) and is writing the cdr into a file Here's list of available variables that could be used to construct a CDR record of your liking. Notice, in order for a parameter to be avaiable in the cdr, it has to be enabled in cdrbuild.conf The cdrwrite parameter is special, a boolean value of false will prevent the CDR from being written. This is to avoid generating CDR records for utility channels while still being able to track them.
${time} - UNIX time
${billid} - billing record id
${chan} - channel used
${address} - destination address
${caller} - username/number of the device that initiated/received the call
${called} - destination number
${callername} - caller id
${billtime} - billable call duration, starts from the point when the
remote party actually answers the call
${ringtime} - total time of the call
${direction} - has a value of outgoing or incoming
${status} - disposition of the call
${reason} - reason for call disconnection
Config file
[general]
; file: string: Name of the file to write the CDR to
file=/tmp/cdr.tsv
; tabs: bool: Use tab-separated instead of comma-separated if format is missing
tabs=true
; format: string: Custom format to use, overrides default. Each ${parameter}
; is replaced with the value of that parameter in the call.cdr message
; default value depends if tabs or commas are used
In many real-life situations CDR billing is done in seconds and it's useful to set resolution=sec in cdrbuild.conf |
3 May 2010: 8 March 2010: 6-7 February 2010: 2 Nov 2009: 6 Aug 2008: 4 Aug 2008: 10 Jul 2008: Feb 2008: 21 Jan 2008: 3 September: 14 August: 16 April: 25 September: 25 September: 11 July 2006: 10 July 2006: June 1st 2006: |