]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
copy musicclass (bug #3235)
authorRussell Bryant <russell@russellbryant.com>
Thu, 13 Jan 2005 04:37:25 +0000 (04:37 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 13 Jan 2005 04:37:25 +0000 (04:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4777 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index a90aed54858c12de7870eef76f276c9b113f5ba0..1c78883bc1804a0c1c1008647fdce6cb90d090ad 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -2205,7 +2205,7 @@ int ast_do_masquerade(struct ast_channel *original)
        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 @@ int ast_do_masquerade(struct ast_channel *original)
        /* 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