From 0bd36686f2c61ff6b589d2f1494d411f8045f826 Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Wed, 29 Feb 2012 19:43:02 +0000 Subject: [PATCH] Fix copying of CDR(accountcode) to local channels. In r203638, during the addition of the Channel Event Logging, in mid-2009, this got broken in trunk and ended up in asterisk 1.8 and higher. This fixes so the CDR(accountcode) from the calling channel is available to dialed channels again as well as showing up properly in the CDR's. (closes issue ASTERISK-19384) Reported by: jamicque Patches: accountcode.patch (License #6033) by jamicque Review: https://reviewboard.asterisk.org/r/1775/ Reviewed by: Richard Mudgett ........ Merged revisions 357575 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@357576 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_dial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_dial.c b/apps/app_dial.c index 4fe19d7a0a..3a0e9482f2 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -2307,7 +2307,7 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast tc->dialed.transit_network_select = chan->dialed.transit_network_select; if (!ast_strlen_zero(chan->accountcode)) { - ast_string_field_set(tc, peeraccount, chan->accountcode); + ast_string_field_set(tc, accountcode, chan->accountcode); } if (ast_strlen_zero(tc->musicclass)) ast_string_field_set(tc, musicclass, chan->musicclass); -- 2.47.2