[Asterisk-cvs] asterisk channel.c,1.139.2.2,1.139.2.3
russell at lists.digium.com
russell at lists.digium.com
Wed Jan 12 22:33:26 CST 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17059
Modified Files:
Tag: v1-0
channel.c
Log Message:
copy musicclass (bug #3235)
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.139.2.2
retrieving revision 1.139.2.3
diff -u -d -r1.139.2.2 -r1.139.2.3
--- channel.c 4 Jan 2005 05:59:49 -0000 1.139.2.2
+++ channel.c 13 Jan 2005 04:37:25 -0000 1.139.2.3
@@ -2205,7 +2205,7 @@
char orig[100];
char masqn[100];
char zombn[100];
-
+
#if 1
ast_log(LOG_DEBUG, "Actually Masquerading %s(%d) into the structure of %s(%d)\n",
clone->name, clone->_state, original->name, original->_state);
@@ -2362,6 +2362,9 @@
/* Set the read format */
ast_set_read_format(original, rformat);
+ /* Copy the music class */
+ strncpy(original->musicclass, clone->musicclass, sizeof(original->musicclass) - 1);
+
ast_log(LOG_DEBUG, "Putting channel %s in %d/%d formats\n", original->name, wformat, rformat);
/* Okay. Last thing is to let the channel driver know about all this mess, so he
More information about the svn-commits
mailing list