[Asterisk-cvs] asterisk/include/asterisk cdr.h,1.2,1.3 channel.h,1.20,1.21
martinp at lists.digium.com
martinp at lists.digium.com
Fri Sep 12 11:50:26 CDT 2003
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv10727/include/asterisk
Modified Files:
cdr.h channel.h
Log Message:
Add distinguishing between BUSY and FAILURE for outgoing spool calls. Always save CDR record (even if the call fails). If the call fails try to see if there is
"failed" extension in the specified context (only if you use context,extension,priority syntax) and execute it.
Index: cdr.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/cdr.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cdr.h 30 May 2003 04:41:18 -0000 1.2
+++ cdr.h 12 Sep 2003 16:51:35 -0000 1.3
@@ -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_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
Index: channel.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/channel.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- channel.h 8 Sep 2003 16:48:07 -0000 1.20
+++ channel.h 12 Sep 2003 16:51:35 -0000 1.21
@@ -213,6 +213,9 @@
/* 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;
More information about the svn-commits
mailing list