mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
copy musicclass (bug #3235)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2362,6 +2362,9 @@ int ast_do_masquerade(struct ast_channel *original)
|
|||||||
/* Set the read format */
|
/* Set the read format */
|
||||||
ast_set_read_format(original, rformat);
|
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);
|
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
|
/* Okay. Last thing is to let the channel driver know about all this mess, so he
|
||||||
|
|||||||
Reference in New Issue
Block a user