aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-18 20:56:20 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-18 20:56:20 +0000
commit59d800072ecf60a7e8e92140cc17e527e3349ecd (patch)
tree1ba00a1516af40676aeaf97d0b24a335660de4db /include
parent201909b9bb26f9900ddcfc8393281c69daee8b58 (diff)
This update will fix the situation that occurs as described by 9717, where when several targets are specified for a dial, if any one them reports FAIL, the whole call gets FAIL, even though others were ringing OK. I rearranged the priorities, so that a new disposition, NULL, is at the lowest level, and the disposition get init'd to NULL. Then, next up is FAIL, and next up is BUSY, then NOANSWER, then ANSWERED. All the related set routines will only do so if the disposition value to be set to is greater than what's already there. This gives the intended effect. So, if all the targets are busy, you'd get BUSY for the call disposition. If all get BUSY, but one, and that one rings is not answered, you get NOANSWER. If by some freak of nature, the NULL value doesn't get overridden, then the disp2str routine will report NOANSWER as before.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65172 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/cdr.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h
index ae10ac13a..5817603c2 100644
--- a/include/asterisk/cdr.h
+++ b/include/asterisk/cdr.h
@@ -30,9 +30,10 @@
#define AST_CDR_FLAG_CHILD (1 << 3)
#define AST_CDR_FLAG_POST_DISABLED (1 << 4)
-#define AST_CDR_NOANSWER (1 << 0)
+#define AST_CDR_NULL 0
+#define AST_CDR_FAILED (1 << 0)
#define AST_CDR_BUSY (1 << 1)
-#define AST_CDR_FAILED (1 << 2)
+#define AST_CDR_NOANSWER (1 << 2)
#define AST_CDR_ANSWERED (1 << 3)
/*! AMA Flags */
@@ -169,6 +170,13 @@ extern void ast_cdr_start(struct ast_cdr *cdr);
*/
extern void ast_cdr_answer(struct ast_cdr *cdr);
+/*! A call wasn't answered */
+/*!
+ * \param cdr the cdr you wish to associate with the call
+ * Marks the channel disposition as "NO ANSWER"
+ */
+extern void ast_cdr_noanswer(struct ast_cdr *cdr);
+
/*! Busy a call */
/*!
* \param cdr the cdr you wish to associate with the call