diff options
Diffstat (limited to 'include/asterisk')
-rwxr-xr-x | include/asterisk/cdr.h | 16 | ||||
-rwxr-xr-x | include/asterisk/channel.h | 3 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h index 0b9681035..3988832df 100755 --- a/include/asterisk/cdr.h +++ b/include/asterisk/cdr.h @@ -23,6 +23,7 @@ #define AST_CDR_NOANSWER (1 << 0) #define AST_CDR_BUSY (1 << 1) #define AST_CDR_ANSWERED (1 << 2) +#define AST_CDR_FAILED (1 << 3) //! AMA Flags #define AST_CDR_OMIT (1) @@ -142,6 +143,21 @@ extern void ast_cdr_answer(struct ast_cdr *cdr); */ extern void ast_cdr_busy(struct ast_cdr *cdr); +//! Fail a call +/*! + * \param cdr the cdr you wish to associate with the call + * Returns nothing important + */ +extern 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 important + * \param cause the AST_CAUSE_* + */ +extern int ast_cdr_disposition(struct ast_cdr *cdr, int cause); + //! End a call /*! * \param cdr the cdr you have associated the call with diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 815f882f4..f33bb62d3 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -213,6 +213,9 @@ struct ast_channel { /* Unique Channel Identifier */ char uniqueid[32]; + /* Why is the channel hanged up */ + int hangupcause; + /* A linked list for variables */ struct ast_var_t *vars; AST_LIST_HEAD(varshead,ast_var_t) varshead; |