From 36d08dc8f01f17202d7f2dea245eb49eff27e266 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sat, 22 Jan 2005 01:44:12 +0000 Subject: [PATCH] copy language (bug #3401) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4875 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/channel.c b/channel.c index 8f19ea81b3..d5fe129887 100755 --- a/channel.c +++ b/channel.c @@ -2304,9 +2304,12 @@ 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;xfds[x] = clone->fds[x];