aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-03 01:42:31 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-03 01:42:31 +0000
commit46d0533b99ab53d15a5c3b68c3004d765ba3bf1f (patch)
tree9659118a15a4a64549a5e85e5e782c84e1f4be14 /channel.c
parent0c9a835d776cba28a31e5523e864cc816cea8568 (diff)
support configurable batch posting of CDRs (off by default) (bug #3883)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5823 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 4e67b3b90..d17c63e5f 100755
--- a/channel.c
+++ b/channel.c
@@ -862,8 +862,7 @@ int ast_hangup(struct ast_channel *chan)
chan->generator = NULL;
if (chan->cdr) { /* End the CDR if it hasn't already */
ast_cdr_end(chan->cdr);
- ast_cdr_post(chan->cdr); /* Post and Free the CDR */
- ast_cdr_free(chan->cdr);
+ ast_cdr_detach(chan->cdr); /* Post and Free the CDR */
}
if (ast_test_flag(chan, AST_FLAG_BLOCKING)) {
ast_log(LOG_WARNING, "Hard hangup called by thread %ld on %s, while fd "