summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-07-22 03:51:54 +0000
committerMark Spencer <markster@digium.com>2004-07-22 03:51:54 +0000
commitbb75fcc4db372e4e5becb64d437697fa352a4760 (patch)
tree4aa922ae856c943c6fb3c71a0f8ff455788f1da4 /apps
parent0bb8d9567493ca829aaa763098f4b4b811d6e3af (diff)
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
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_dial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 9d922813a..ba60d278d 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)