Copy account code and flags form incoming to outgoing channel for purposes of local...
authorMark Spencer <markster@digium.com>
Thu, 22 Jul 2004 03:51:54 +0000 (03:51 +0000)
committerMark Spencer <markster@digium.com>
Thu, 22 Jul 2004 03:51:54 +0000 (03:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3490 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 9d92281..ba60d27 100755 (executable)
@@ -771,6 +771,8 @@ static int dial_exec(struct ast_channel *chan, void *data)
                        tmp->chan->callerid = NULL;
                /* Copy language from incoming to outgoing */
                strncpy(tmp->chan->language, chan->language, sizeof(tmp->chan->language) - 1);
+               strncpy(tmp->chan->accountcode, chan->accountcode, sizeof(tmp->chan->accountcode) - 1);
+               tmp->chan->cdrflags = chan->cdrflags;
                if (ast_strlen_zero(tmp->chan->musicclass))
                        strncpy(tmp->chan->musicclass, chan->musicclass, sizeof(tmp->chan->musicclass) - 1);
                if (chan->ani)