diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-30 14:37:21 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-30 14:37:21 +0000 |
commit | 757bcc9075780a3163e790ae36bf159bc9d1cd3e (patch) | |
tree | eb6820c177bd88edaea52637217e977e8d82fb96 /include/asterisk/cdr.h | |
parent | 51b4ef51f0b50666df25f8b54388d4c466470415 (diff) |
Merged revisions 59486 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r59486 | murf | 2007-03-30 08:11:59 -0600 (Fri, 30 Mar 2007) | 1 line
These mods fix CDR issues from 8221, 8593, 8680, 8743, and perhaps others. Mainly with CDRs generated from transfer situations.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59500 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/cdr.h')
-rw-r--r-- | include/asterisk/cdr.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h index 9c081718d..e9f5f8f1e 100644 --- a/include/asterisk/cdr.h +++ b/include/asterisk/cdr.h @@ -121,6 +121,12 @@ struct ast_cdr *ast_cdr_dup(struct ast_cdr *cdr); */ void ast_cdr_free(struct ast_cdr *cdr); +/*! \brief Discard and free a CDR record + * \param cdr ast_cdr structure to free + * Returns nothing important -- same as free, but no checks or complaints + */ +void ast_cdr_discard(struct ast_cdr *cdr); + /*! \brief Initialize based on a channel * \param cdr Call Detail Record to use for channel * \param chan Channel to bind CDR with @@ -269,6 +275,12 @@ void ast_cdr_reset(struct ast_cdr *cdr, struct ast_flags *flags); */ char *ast_cdr_flags2str(int flags); +/*! Move the non-null data from the "from" cdr to the "to" cdr + * \param to the cdr to get the goodies + * \param from the cdr to give the goodies + */ +void ast_cdr_merge(struct ast_cdr *to, struct ast_cdr *from); + int ast_cdr_setaccount(struct ast_channel *chan, const char *account); int ast_cdr_setamaflags(struct ast_channel *chan, const char *amaflags); |