diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/cdr.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h index b61e25014..3f0c25c47 100644 --- a/include/asterisk/cdr.h +++ b/include/asterisk/cdr.h @@ -24,11 +24,13 @@ #define _ASTERISK_CDR_H #include <sys/time.h> -#define AST_CDR_FLAG_KEEP_VARS (1 << 0) +#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_POST_DISABLED (1 << 4) +#define AST_CDR_FLAG_ANSLOCKED (1 << 5) +#define AST_CDR_FLAG_DONT_TOUCH (1 << 6) #define AST_CDR_NULL 0 #define AST_CDR_FAILED (1 << 0) @@ -39,10 +41,10 @@ /*! AMA Flags */ #define AST_CDR_OMIT (1) #define AST_CDR_BILLING (2) -#define AST_CDR_DOCUMENTATION (3) +#define AST_CDR_DOCUMENTATION (3) #define AST_MAX_USER_FIELD 256 -#define AST_MAX_ACCOUNT_CODE 20 +#define AST_MAX_ACCOUNT_CODE 20 /* Include channel.h after relevant declarations it will need */ #include "asterisk/channel.h" @@ -179,12 +181,17 @@ void ast_cdr_answer(struct ast_cdr *cdr); /*! * \param cdr the cdr you wish to associate with the call * Marks the channel disposition as "NO ANSWER" + * Will skip CDR's in chain with ANS_LOCK bit set. (see + * forkCDR() application. */ extern void ast_cdr_noanswer(struct ast_cdr *cdr); /*! Busy a call */ /*! * \param cdr the cdr you wish to associate with the call + * Marks the channel disposition as "BUSY" + * Will skip CDR's in chain with ANS_LOCK bit set. (see + * forkCDR() application. * Returns nothing */ void ast_cdr_busy(struct ast_cdr *cdr); @@ -192,6 +199,9 @@ void ast_cdr_busy(struct ast_cdr *cdr); /*! Fail a call */ /*! * \param cdr the cdr you wish to associate with the call + * Marks the channel disposition as "FAILED" + * Will skip CDR's in chain with ANS_LOCK bit set. (see + * forkCDR() application. * Returns nothing */ void ast_cdr_failed(struct ast_cdr *cdr); @@ -199,8 +209,8 @@ void ast_cdr_failed(struct ast_cdr *cdr); /*! Save the result of the call based on the AST_CAUSE_* */ /*! * \param cdr the cdr you wish to associate with the call - * Returns nothing * \param cause the AST_CAUSE_* + * Returns nothing */ int ast_cdr_disposition(struct ast_cdr *cdr, int cause); |