CDRcombine Module

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(How to use)
(How to use)
Line 29: Line 29:
===How to use===
===How to use===
* Make sure the cdrcombine, cdrbuild, and cdrfile modules are loaded
* Make sure the cdrcombine, [[CDR Build Module|cdrbuild]], and [[CDR File Module|cdrfile]] modules are loaded.
* In cdrfile.conf conf set:
* In cdrfile.conf conf set:

Revision as of 17:51, 15 August 2013

The cdrcombine module the writing of a single CDR entry per call instead of multiple entries, one for each call leg (one for the incoming leg and one or more for outgoing leg(s)).

This modules enables was added in SVN revision 5394.


Operation on CDR

This modules catches the call.cdr messages for operations "initialize", "update" and "finalize" and emits call.cdr message with operation "combine" at the end of the call.

Format for information

Unified information for call

Fields identifying a call:

  • time
  • billid
  • caller
  • called
  • status

Call leg specific information

The following fields are call leg specific:

  • chan
  • address
  • billtime
  • ringtime
  • duration
  • reason


There is no configuration file for cdrcombine module. In order to use set "combine" option to true in cdrfile.conf.

How to use

  • In cdrfile.conf conf set:
; file: string: Name of the file to write the CDR to
; You should check that this file is log rotated - see /etc/logrotate.d/yate

; combined: bool: Use combined CDR for all legs of a call

; comma-separated (.csv), combined=true
format=${time}, "${billid}", "${chan}", "${address}", "${caller}", "${called}", ${billtime}, ${ringtime}, ${duration}, "${status}", "${reason}", "${out_leg.chan}", "${out_leg.address}", ${out_leg.billtime}, ${out_leg.ringtime}, ${out_leg.duration}, "${out_leg.reason}"
  • Example of output in configured yate-cdr.csv
1370509475.567, "1370508584-4", "sip/6", "", "123", "124", 0.000, 4.375, 4.453, "ringing", "Request Terminated", "sip/7", "", 0.000,4.379,4.446, "Cancelled"
1370509560.562, "1370508584-5", "sip/8", "", "124", "123", 9.520, 4.998, 14.589, "answered", "", "sip/9", "", 9.518,4.998,14.582, ""
1370509605.743, "1370508584-6", "sip/10", "", "123", "124", 96.289, 6.796, 103.190, "answered", "", "sip/12", "", 6.988, 3.224, 10.281, ""

See also:

Personal tools