mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 03:59:01 +00:00
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
This commit is contained in:
@@ -771,6 +771,8 @@ static int dial_exec(struct ast_channel *chan, void *data)
|
|||||||
tmp->chan->callerid = NULL;
|
tmp->chan->callerid = NULL;
|
||||||
/* Copy language from incoming to outgoing */
|
/* Copy language from incoming to outgoing */
|
||||||
strncpy(tmp->chan->language, chan->language, sizeof(tmp->chan->language) - 1);
|
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))
|
if (ast_strlen_zero(tmp->chan->musicclass))
|
||||||
strncpy(tmp->chan->musicclass, chan->musicclass, sizeof(tmp->chan->musicclass) - 1);
|
strncpy(tmp->chan->musicclass, chan->musicclass, sizeof(tmp->chan->musicclass) - 1);
|
||||||
if (chan->ani)
|
if (chan->ani)
|
||||||
|
Reference in New Issue
Block a user