Copy language, too (bug #3401)
authorMark Spencer <markster@digium.com>
Fri, 21 Jan 2005 22:30:16 +0000 (22:30 +0000)
committerMark Spencer <markster@digium.com>
Fri, 21 Jan 2005 22:30:16 +0000 (22:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4872 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 94fbb6d..075de5c 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -2440,9 +2440,11 @@ int ast_do_masquerade(struct ast_channel *original)
        strncpy(clone->name, zombn, sizeof(clone->name) - 1);
        manager_event(EVENT_FLAG_CALL, "Rename", "Oldname: %s\r\nNewname: %s\r\nUniqueid: %s\r\n", masqn, zombn, clone->uniqueid);
 
-       /* Keep the same language.  */
        /* Update the type. */
        original->type = clone->type;
+       
+       /* Keep the same language.  */
+       strncpy(original->language, clone->language, sizeof(original->language));
        /* Copy the FD's */
        for (x=0;x<AST_MAX_FDS;x++) {
                original->fds[x] = clone->fds[x];