[Asterisk-cvs] asterisk channel.c,1.139.2.4,1.139.2.5

russell at lists.digium.com russell at lists.digium.com
Fri Jan 21 19:41:22 CST 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv26848

Modified Files:
      Tag: v1-0
	channel.c 
Log Message:
copy language (bug #3401)


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.139.2.4
retrieving revision 1.139.2.5
diff -u -d -r1.139.2.4 -r1.139.2.5
--- channel.c	13 Jan 2005 05:18:31 -0000	1.139.2.4
+++ channel.c	22 Jan 2005 01:44:12 -0000	1.139.2.5
@@ -2304,9 +2304,12 @@
 	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