From 28d980de3d22275de8d76f7e4108276fff29e2e0 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Mon, 2 Feb 2004 01:13:00 +0000 Subject: [PATCH] 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 --- pbx.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } }