diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/cdr.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h index 3f0c25c47..dc53f3932 100644 --- a/include/asterisk/cdr.h +++ b/include/asterisk/cdr.h @@ -24,14 +24,20 @@ #define _ASTERISK_CDR_H #include <sys/time.h> + +/*! Flags */ #define AST_CDR_FLAG_KEEP_VARS (1 << 0) #define AST_CDR_FLAG_POSTED (1 << 1) #define AST_CDR_FLAG_LOCKED (1 << 2) #define AST_CDR_FLAG_CHILD (1 << 3) #define AST_CDR_FLAG_POST_DISABLED (1 << 4) -#define AST_CDR_FLAG_ANSLOCKED (1 << 5) -#define AST_CDR_FLAG_DONT_TOUCH (1 << 6) +#define AST_CDR_FLAG_BRIDGED (1 << 5) +#define AST_CDR_FLAG_MAIN (1 << 6) +#define AST_CDR_FLAG_ENABLE (1 << 7) +#define AST_CDR_FLAG_ANSLOCKED (1 << 8) +#define AST_CDR_FLAG_DONT_TOUCH (1 << 9) +/*! Disposition */ #define AST_CDR_NULL 0 #define AST_CDR_FAILED (1 << 0) #define AST_CDR_BUSY (1 << 1) @@ -282,6 +288,14 @@ char *ast_cdr_disp2str(int disposition); */ void ast_cdr_reset(struct ast_cdr *cdr, struct ast_flags *flags); +/*! Reset the detail record times, flags */ +/*! + * \param cdr which cdr to act upon + * \param flags |AST_CDR_FLAG_POSTED whether or not to post the cdr first before resetting it + * |AST_CDR_FLAG_LOCKED whether or not to reset locked CDR's + */ +void ast_cdr_specialized_reset(struct ast_cdr *cdr, struct ast_flags *flags); + /*! Flags to a string */ /*! * \param flags binary flag |