mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Add support for "musicclass" instead of "musiconhold" to make chan_zap compatible
with other channels. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
* \arg \ref Config_zap
|
||||
*
|
||||
* \ingroup channel_drivers
|
||||
*
|
||||
* \todo Decprecate the "musiconhold" configuration option in v1.5dev
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -10529,7 +10531,7 @@ static int setup_zap(int reload)
|
||||
ast_copy_string(language, v->value, sizeof(language));
|
||||
} else if (!strcasecmp(v->name, "progzone")) {
|
||||
ast_copy_string(progzone, v->value, sizeof(progzone));
|
||||
} else if (!strcasecmp(v->name, "musiconhold")) {
|
||||
} else if (!strcasecmp(v->name, "musiconhold") || !strcasecmp(v->name, "musicclass")) {
|
||||
ast_copy_string(musicclass, v->value, sizeof(musicclass));
|
||||
} else if (!strcasecmp(v->name, "stripmsd")) {
|
||||
stripmsd = atoi(v->value);
|
||||
|
Reference in New Issue
Block a user