]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ensure that when we set the accountcode, it actually shows up in the CDR.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 24 Apr 2008 19:53:36 +0000 (19:53 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 24 Apr 2008 19:53:36 +0000 (19:53 +0000)
(Fix for AMI Originate)
(Closes issue #12007)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114621 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index c89d275b24288dbd0e29a3fcc7b5fdacf84ef92b..57cab05e820a8ddbe73fb749004665c06fb87121 100644 (file)
@@ -471,6 +471,7 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout)
        p->chan->cid.cid_pres = p->owner->cid.cid_pres;
        ast_string_field_set(p->chan, language, p->owner->language);
        ast_string_field_set(p->chan, accountcode, p->owner->accountcode);
+       ast_cdr_update(p->chan);
        p->chan->cdrflags = p->owner->cdrflags;
 
        /* copy the channel variables from the incoming channel to the outgoing channel */