summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-09-01 16:16:53 +0000
committerMark Spencer <markster@digium.com>2003-09-01 16:16:53 +0000
commit7893c6b188bc4081b9c149c433ecc1ff6fd38a5f (patch)
treee6a7ea8207e350bf9b1aafd1a6126fbf8b447787 /pbx.c
parentd855c2855ab2df25bf425808b99be8088916a715 (diff)
Update CDR's when changing extensions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index bd3e3a1b6..dea3ef4c6 100755
--- a/pbx.c
+++ b/pbx.c
@@ -1797,6 +1797,11 @@ int ast_pbx_run(struct ast_channel *c)
}
}
}
+ if (c->cdr) {
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_2,"CDR updated on %s\n",c->name);
+ ast_cdr_update(c);
+ }
}
}
if (firstpass)