From: Mark Spencer Date: Mon, 2 Feb 2004 01:13:00 +0000 (+0000) Subject: Force update of the CDR before clearing channel (bug #974) X-Git-Tag: 0.9.0~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28d980de3d22275de8d76f7e4108276fff29e2e0;p=thirdparty%2Fasterisk.git Force update of the CDR before clearing channel (bug #974) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2107 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index 6f05528c58..84f6016441 100755 --- a/pbx.c +++ b/pbx.c @@ -1745,6 +1745,10 @@ int ast_pbx_run(struct ast_channel *c) if (c->_softhangup == AST_SOFTHANGUP_TIMEOUT) { break; } + + if (c->cdr) { + ast_cdr_update(c); + } goto out; } }