aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-19 22:41:55 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-19 22:41:55 +0000
commit1aabf3303337e1ca23fffc3f75b812aeb5fdeed8 (patch)
tree1ba8b123af0ff030b231c98b6cf63a11e34bdd3e /channels/chan_zap.c
parentec180c25b840aa8d6158d402702b45c93988ae5c (diff)
Add support for "musicclass" instead of "musiconhold" to make chan_zap compatible
with other channels. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8300 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 705ddf5f9..8db68fed9 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -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);