From: Kevin P. Fleming Date: Mon, 31 Oct 2005 21:43:53 +0000 (+0000) Subject: properly support 'musicclass' setting for peers/users (issue #5521) X-Git-Tag: 1.2.0-beta2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b175ff39ef35aafd9f273e3635121ab44e5b74e6;p=thirdparty%2Fasterisk.git properly support 'musicclass' setting for peers/users (issue #5521) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6905 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fb48e19f9f..10d7c5833e 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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));