From 46d0533b99ab53d15a5c3b68c3004d765ba3bf1f Mon Sep 17 00:00:00 2001 From: kpfleming Date: Fri, 3 Jun 2005 01:42:31 +0000 Subject: 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 --- pbx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pbx.c') 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 */ -- cgit v1.2.3