diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-12 14:38:46 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-12 14:38:46 +0000 |
commit | a8ccf75d8fc86b365be1cc93dbcbab6697119bf4 (patch) | |
tree | 2c8871ffc414e7333bc174d1e67c6c4935ff86b3 /include | |
parent | a2d7be26a43b4698e3653f32d23c127f0e054c1d (diff) |
Merged revisions 122091 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r122091 | murf | 2008-06-12 08:28:01 -0600 (Thu, 12 Jun 2008) | 45 lines
Merged revisions 122046 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r122046 | murf | 2008-06-12 07:47:34 -0600 (Thu, 12 Jun 2008) | 37 lines
(closes issue #10668)
Reported by: arkadia
Tested by: murf, arkadia
Options added to forkCDR() app and the CDR() func to
remove some roadblocks for CDR applications.
The "show application ForkCDR" output was upgraded
to more fully explain the inner workings of forkCDR.
The A option was added to forkCDR to force the
CDR system to NOT change the disposition on the
original CDR, after the fork. This involves
ast_cdr_answer, _busy, _failed, and so on.
The T option was added to forkCDR to force
obedience of the cdr LOCKED flag in the
ast_cdr_end, all the disposition changing
funcs (ast_cdr_answer, etc), and in the
ast_cdr_setvar func.
The CHANGES file was updated to explain ALL
the new options added to satisfy this bug report
(and some requests made verbally and via
email, irc, etc, over the past months/year)
The 's' option was added to the CDR() func,
to force it to skip LOCKED cdr's in the
chain.
Again, the new options should be totally transparent
to existing apps! Current behavior of CDR,
forkCDR, and the rest of the CDR system should
not change one little bit. Until you add the
new options, at least!
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@122126 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/cdr.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h index fbab3f53f..addef04ea 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_FLAG_POST_ENABLE (1 << 5) /*! \name CDR Flags */ @@ -44,11 +46,11 @@ /*@{ */ #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" @@ -196,12 +198,17 @@ void ast_cdr_answer(struct ast_cdr *cdr); * \brief A call wasn't answered * \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); /*! * \brief 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); @@ -209,6 +216,9 @@ void ast_cdr_busy(struct ast_cdr *cdr); /*! * \brief 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); |