aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/cdr.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-02-02 19:37:23 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-02-02 19:37:23 +0000
commitada9b7513794d7a09c55f5bc734cb92ed18f74f5 (patch)
treee58e25ab5ec5407991efba472eed5700d5ec3555 /include/asterisk/cdr.h
parent6f78a28365f7e794fe0dd7bd70ad22849da6e2ee (diff)
Version 0.3.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@597 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/cdr.h')
-rwxr-xr-xinclude/asterisk/cdr.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h
index 820426b39..213671631 100755
--- a/include/asterisk/cdr.h
+++ b/include/asterisk/cdr.h
@@ -92,6 +92,15 @@ extern void ast_cdr_free(struct ast_cdr *cdr);
*/
extern int ast_cdr_init(struct ast_cdr *cdr, struct ast_channel *chan);
+//! Initialize based on a channel
+/*!
+ * \param cdr Call Detail Record to use for channel
+ * \param chan Channel to bind CDR with
+ * Initializes a CDR and associates it with a particular channel
+ * Return is negligible. (returns 0 by default)
+ */
+extern int ast_cdr_setcid(struct ast_cdr *cdr, struct ast_channel *chan);
+
//! Register a CDR handling engine
/*!
* \param name name associated with the particular CDR handler
@@ -181,6 +190,13 @@ extern int ast_cdr_amaflags2int(char *flag);
*/
extern char *ast_cdr_disp2str(int disposition);
+//! Reset the detail record, optionally posting it first
+/*!
+ * \param cdr which cdr to act upon
+ * \param post whether or not to post the cdr first before resetting it
+ */
+extern void ast_cdr_reset(struct ast_cdr *cdr, int post);
+
//! Flags to a string
/*!
* \param flags binary flag
@@ -190,6 +206,9 @@ extern char *ast_cdr_disp2str(int disposition);
extern char *ast_cdr_flags2str(int flags);
extern int ast_cdr_setaccount(struct ast_channel *chan, char *account);
+/* Update CDR on a channel */
+extern int ast_cdr_update(struct ast_channel *chan);
+
extern int ast_default_amaflags;