diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-06-03 01:42:31 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-06-03 01:42:31 +0000 |
commit | 23472dd2c0e2e829f5636e9a2a4ed2dcf61b0d77 (patch) | |
tree | 9659118a15a4a64549a5e85e5e782c84e1f4be14 /channel.c | |
parent | 0582912c5d1ae1540f6620e44335c84e581951cc (diff) |
support configurable batch posting of CDRs (off by default) (bug #3883)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 " |