summaryrefslogtreecommitdiff
path: root/configs/cdr.conf.sample
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2008-08-26 15:57:49 +0000
committerSteve Murphy <murf@digium.com>2008-08-26 15:57:49 +0000
commit8953b0f3594eb43530530162729f7cee19e07db0 (patch)
tree5f9704b71c74cf16ea793f7706374e97f6f4a491 /configs/cdr.conf.sample
parentb296adfe8e48d57a351d1b21ccc2bff57df326f6 (diff)
(closes issue #13366)
Reported by: erousseau This was a reasonable enhancement request, which was easy to implement. Since it's an enhancement, it could only be applied to trunk. Basically, for accounting where "initiated" seconds are billed for, if the microseconds field on the end time is greater than the microseconds field for the answer time, add one second to the billsec field. The implementation was requested by erousseau, and I've implemented it as requested. I've updated the CHANGES, the cdr.conf.sample, and the .h files accordingly, to accept and set a flag for the corresponding new option. cdr.c adds in the extra second based on the usec fields if the option is set. Tested, seems to be working fine. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@140057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs/cdr.conf.sample')
-rw-r--r--configs/cdr.conf.sample9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/cdr.conf.sample b/configs/cdr.conf.sample
index 693b28092..195f88f32 100644
--- a/configs/cdr.conf.sample
+++ b/configs/cdr.conf.sample
@@ -65,6 +65,15 @@
; retrieved inside of of this extension.
;endbeforehexten=no
+; Normally, the 'billsec' field logged to the backends (text files or databases)
+; is simply the end time (hangup time) minus the answer time in seconds. Internally,
+; asterisk stores the time in terms of microseconds and seconds. By setting
+; initiatedseconds to 'yes', you can force asterisk to report any seconds
+; that were initiated (a sort of round up method). Technically, this is
+; when the microsecond part of the end time is greater than the microsecond
+; part of the answer time, then the billsec time is incremented one second.
+;initiatedseconds=no
+
;
;
; CHOOSING A CDR "BACKEND" (what kind of output to generate)