aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-26 15:57:49 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-26 15:57:49 +0000
commitb0583a6878987436cf1dcbf85d34aa8f3a423ee3 (patch)
tree5f9704b71c74cf16ea793f7706374e97f6f4a491 /include
parent009b7b31cbdcb491c20074841c0c58c541701cdd (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 'include')
-rw-r--r--include/asterisk/options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h
index 19fb3ab59..35f42fb25 100644
--- a/include/asterisk/options.h
+++ b/include/asterisk/options.h
@@ -84,6 +84,8 @@ enum ast_option_flags {
AST_OPT_FLAG_VERBOSE_FILE = (1 << 24),
/*! Terminal colors should be adjusted for a light-colored background */
AST_OPT_FLAG_LIGHT_BACKGROUND = (1 << 25),
+ /*! Count Initiated seconds in CDR's */
+ AST_OPT_FLAG_INITIATED_SECONDS = (1 << 26),
};
/*! These are the options that set by default when Asterisk starts */