properly support 'musicclass' setting for peers/users (issue #5521)
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 31 Oct 2005 21:43:53 +0000 (21:43 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 31 Oct 2005 21:43:53 +0000 (21:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6905 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index fb48e19..10d7c58 100755 (executable)
@@ -11835,7 +11835,7 @@ static struct sip_user *build_user(const char *name, struct ast_variable *v, int
                        user->pickupgroup = ast_get_group(v->value);
                } else if (!strcasecmp(v->name, "language")) {
                        ast_copy_string(user->language, v->value, sizeof(user->language));
-               } else if (!strcasecmp(v->name, "musiconhold")) {
+               } else if (!strcasecmp(v->name, "musicclass") || !strcasecmp(v->name, "musiconhold")) {
                        ast_copy_string(user->musicclass, v->value, sizeof(user->musicclass));
                } else if (!strcasecmp(v->name, "accountcode")) {
                        ast_copy_string(user->accountcode, v->value, sizeof(user->accountcode));