[Asterisk-cvs] asterisk channel.c,1.171,1.172
markster at lists.digium.com
markster at lists.digium.com
Fri Jan 21 16:27:25 CST 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv25831
Modified Files:
channel.c
Log Message:
Copy language, too (bug #3401)
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -d -r1.171 -r1.172
--- channel.c 21 Jan 2005 07:06:24 -0000 1.171
+++ channel.c 21 Jan 2005 22:30:16 -0000 1.172
@@ -2440,9 +2440,11 @@
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];
More information about the svn-commits
mailing list