summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2011-08-22 17:05:14 +0000
committerJonathan Rose <jrose@digium.com>2011-08-22 17:05:14 +0000
commit901e275c4c794933cad91244b90abe4f02390deb (patch)
tree5525bed32c28e78a18c149ad5c3887a233759a07 /include
parent91d3a7d3a1d5996ff66f4905beaf797f5e5cd47c (diff)
Add option for logging congested calls as CONGESTION instead of NO_ANSWER in CDR
This patch adds a CDR option to cdr.conf that will allow CDR files to log calls ending with congestion in a way that is unique from other unanswered calls. (closes issue ASTERISK-14842) Reported by: Alec Davis Patches: cdr_congestion.diff.txt (License #5546) patch uploaded by Alec Davis git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@332760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/cdr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h
index 5442fdb0c..e755fe30f 100644
--- a/include/asterisk/cdr.h
+++ b/include/asterisk/cdr.h
@@ -58,6 +58,7 @@ enum {
AST_CDR_FAILED = (1 << 1),
AST_CDR_BUSY = (1 << 2),
AST_CDR_ANSWERED = (1 << 3),
+ AST_CDR_CONGESTION = (1 << 4),
};
/*!
@@ -133,6 +134,7 @@ struct ast_cdr {
};
int ast_cdr_isset_unanswered(void);
+int ast_cdr_isset_congestion(void);
void ast_cdr_getvar(struct ast_cdr *cdr, const char *name, char **ret, char *workspace, int workspacelen, int recur, int raw);
int ast_cdr_setvar(struct ast_cdr *cdr, const char *name, const char *value, int recur);
int ast_cdr_serialize_variables(struct ast_cdr *cdr, struct ast_str **buf, char delim, char sep, int recur);
@@ -267,6 +269,15 @@ void ast_cdr_answer(struct ast_cdr *cdr);
extern void ast_cdr_noanswer(struct ast_cdr *cdr);
/*!
+ * \brief A call was set to congestion
+ * \param cdr the cdr you wish to associate with the call
+ * Markst he channel disposition as "CONGESTION"
+ * Will skip CDR's in chain with ANS_LOCK bit set. (see
+ * forkCDR() application
+ */
+extern void ast_cdr_congestion(struct ast_cdr *cdr);
+
+/*!
* \brief Busy a call
* \param cdr the cdr you wish to associate with the call
* Marks the channel disposition as "BUSY"