[Home]

Summary:ASTERISK-07628: CDR(billsec), CDR(calldate), CDR(duration), CDR(end) are not available in dialplan or AGI
Reporter:sedwards (sedwards)Labels:
Date Opened:2006-08-29 20:03:00Date Closed:2011-06-07 14:08:13
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:These CDR variables are not available in the dialplan or in an AGI.

calldate should always be available. billsec and duration should also, but it could be argued that it may be misleading since the call has not ended.

All should be available to dialplan steps in the "h" extension including AGI's called with deadagi().

My agi, called from the "h" extension by deadagi() writes my CDR's.
Comments:By: Thiago Maluf (malufrj) 2006-08-30 22:33:50

Send your config file (extensions.conf) to see your bug



By: Russell Bryant (russell) 2006-08-30 22:47:00

This issue has already been addressed.  In Asterisk 1.4, you will have the following option in cdr.conf:

; Normally, CDR's are not closed out until after all extensions are finished
; executing.  By enabling this option, the CDR will be ended before executing
; the "h" extension so that CDR values such as "end" and "billsec" may be
; retrieved inside of of this extension.
;endbeforehexten=no

This change was not included in the 1.2 series as it is a new feature and a change of behavior that not everyone would want.