summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-06-03 01:42:31 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-06-03 01:42:31 +0000
commit23472dd2c0e2e829f5636e9a2a4ed2dcf61b0d77 (patch)
tree9659118a15a4a64549a5e85e5e782c84e1f4be14 /pbx.c
parent0582912c5d1ae1540f6620e44335c84e581951cc (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 'pbx.c')
-rwxr-xr-xpbx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 47a7cde60..e64509ed4 100755
--- a/pbx.c
+++ b/pbx.c
@@ -4839,8 +4839,7 @@ int ast_pbx_outgoing_cdr_failed(void)
ast_cdr_start(chan->cdr); /* record the start and stop time */
ast_cdr_end(chan->cdr);
ast_cdr_failed(chan->cdr); /* set the status to failed */
- ast_cdr_post(chan->cdr); /* post the record */
- ast_cdr_free(chan->cdr); /* free the cdr */
+ ast_cdr_detach(chan->cdr); /* post and free the record */
ast_channel_free(chan); /* free the channel */
return 0; /* success */