aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-10 04:23:39 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-10 04:23:39 +0000
commit0b389a5a94c40f2d846d6f0040a4836b7e615ffe (patch)
treec0438a6b3e68922625b49aaa867d826b5d20de84 /channel.c
parent81abae17329a64e7ad8f2a87506e7bc65556075f (diff)
Handle masq properly with music (bug #3235)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4744 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index 01e9c28be..97632ef1f 100755
--- a/channel.c
+++ b/channel.c
@@ -2336,7 +2336,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);
@@ -2478,6 +2478,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