From: Mark Spencer Date: Thu, 22 Jul 2004 03:51:54 +0000 (+0000) Subject: Copy account code and flags form incoming to outgoing channel for purposes of local... X-Git-Tag: 1.0.0-rc2~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb75fcc4db372e4e5becb64d437697fa352a4760;p=thirdparty%2Fasterisk.git Copy account code and flags form incoming to outgoing channel for purposes of local stuff git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3490 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 9d922813a6..ba60d278d6 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -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)