CDR Build Module
(Created page with " Cdrbuild module is reading messages from other channel modules (h323chan,ysipchan,iaxchan) about calls and is building the CDR (call detail record), then is sending a message...") |
Revision as of 14:14, 18 October 2012
Cdrbuild module is reading messages from other channel modules (h323chan,ysipchan,iaxchan) about calls and is building the CDR (call detail record), then is sending a message call.cdr for different cdr modules that intend to write in different mediums (file, database). The same message is used by channels that track channel or line states.
The operation to be performed is indicated by the operation parameter that can be one of:
- initialize - the first call.cdr message generated for the channel.
- update - generated every time something could have changed.
- finalize - last call.cdr message generated for the channel holding the final information on the call leg, this is the only one used by the cdrfile module.
In order for a variable/parameter to be available from the cdrbuild module it has to be enabled. Here's a complete list of builtin overridable variables:
- billid
- reason
- address
- caller
- called
- callername
- calledfull
- username
Other variables are critical for the operation or generated internally and cannot be overriden:
- time
- chan
- operation
- direction
- status
- duration
- billtime
- ringtime
- cdrwrite
- cdrtrack
- cdrcreate
- cdrid
- runid
Note: that in order for a parameter to appear in the chan.cdr messages it has to be received in at least one of the messages handled by this module. For outgoing calls you should use the copyparams parameter of the call.execute message to copy parameters from incoming call leg to the outgoing one.