From f196484187aa5fdbecf8a8a6c38a12bcbaa2285d Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Thu, 19 Jan 2006 19:40:28 +0000 Subject: [PATCH] Enable "musicclass" setting for sip peers as per the config sample. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@8281 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3b631e490d..5a2184b618 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12172,7 +12172,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int } } else if (!strcasecmp(v->name, "accountcode")) { ast_copy_string(peer->accountcode, v->value, sizeof(peer->accountcode)); - } else if (!strcasecmp(v->name, "musiconhold")) { + } else if (!strcasecmp(v->name, "musicclass") || !strcasecmp(v->name, "musiconhold")) { ast_copy_string(peer->musicclass, v->value, sizeof(peer->musicclass)); } else if (!strcasecmp(v->name, "mailbox")) { ast_copy_string(peer->mailbox, v->value, sizeof(peer->mailbox));