diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-24 19:53:36 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-24 19:53:36 +0000 |
commit | a522b676ec8fd216f2528b4cc02eb8ff8de1d698 (patch) | |
tree | 63460977ca5cb765d4d5722189f58d9420322736 /channels | |
parent | feccdf1cf2f9ac389c0ebf2fbf77dcdfdb83045c (diff) |
Ensure that when we set the accountcode, it actually shows up in the CDR.
(Fix for AMI Originate)
(Closes issue #12007)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114621 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_local.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index c89d275b2..57cab05e8 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -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 */ |