Forward language choice
authorMark Spencer <markster@digium.com>
Thu, 4 Dec 2003 22:26:38 +0000 (22:26 +0000)
committerMark Spencer <markster@digium.com>
Thu, 4 Dec 2003 22:26:38 +0000 (22:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1826 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 7ff2f76..7de175c 100755 (executable)
@@ -571,6 +571,8 @@ static int dial_exec(struct ast_channel *chan, void *data)
                        tmp->chan->callerid = strdup(chan->callerid);
                else
                        tmp->chan->callerid = NULL;
+               /* Copy language from incoming to outgoing */
+               strcpy(tmp->chan->language, chan->language);
                if (!strlen(tmp->chan->musicclass))
                        strncpy(tmp->chan->musicclass, chan->musicclass, sizeof(tmp->chan->musicclass) - 1);
                if (chan->ani)