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
This commit is contained in:
Mark Spencer
2004-02-02 01:13:00 +00:00
parent e2dddf3532
commit 28d980de3d

4
pbx.c
View File

@@ -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;
}
}