CDRcombine Module
From Yate Documentation
(Difference between revisions)
(Created page with "The cdrcombine modules was added in SVN revision 5394. <br/> This modules enables the writing of a single CDR entry per call instead of multiple entries, one for each call leg...") |
(→How to use) |
||
Line 29: | Line 29: | ||
; comma-separated (.csv), combined=true | ; 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}" | + | 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}" |
Revision as of 16:33, 15 August 2013
The cdrcombine modules was added in SVN revision 5394.
This modules enables 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)).
Contents |
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
Call leg specific information
Configuration
There is no configuration file for cdrcombine module. In order to use set "combine" option to true in cdrfile.conf.
How to use
- Make sure the module is loaded
- In cdrfile.conf conf set:
[general] ; 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 file=/var/log/yate-cdr.csv ; combined: bool: Use combined CDR for all legs of a call combined=true ; 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}"