diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-08-26 15:57:49 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-08-26 15:57:49 +0000 |
commit | b0583a6878987436cf1dcbf85d34aa8f3a423ee3 (patch) | |
tree | 5f9704b71c74cf16ea793f7706374e97f6f4a491 /configs/cdr.conf.sample | |
parent | 009b7b31cbdcb491c20074841c0c58c541701cdd (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: http://svn.digium.com/svn/asterisk/trunk@140057 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs/cdr.conf.sample')
-rw-r--r-- | configs/cdr.conf.sample | 9 |
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) |