summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-02-02 01:13:00 +0000
committerMark Spencer <markster@digium.com>2004-02-02 01:13:00 +0000
commit28d980de3d22275de8d76f7e4108276fff29e2e0 (patch)
tree6e929339c4e5ce0a9d24977a067ff8f60c58ba92 /pbx.c
parente2dddf3532d51b0ad5c4e489e2a3c8fc05cc837f (diff)
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
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index 6f05528c5..84f601644 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;
}
}