From: Mark Spencer Date: Mon, 1 Sep 2003 16:16:53 +0000 (+0000) Subject: Update CDR's when changing extensions X-Git-Tag: 0.5.0~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7893c6b188bc4081b9c149c433ecc1ff6fd38a5f;p=thirdparty%2Fasterisk.git Update CDR's when changing extensions git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1457 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index bd3e3a1b6f..dea3ef4c67 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)