mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-15 16:16:43 -07:00
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
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user