aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-19 19:40:28 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-19 19:40:28 +0000
commit9a2aa663699403c5483d56a8033cc8005101c39b (patch)
tree2a36e32231bd76d3f98fdd263b3054b1028bd01c
parentc47010813e8a6a13fa45da7d1e2b2fc0fe3192ed (diff)
Enable "musicclass" setting for sip peers as per the config sample.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8281 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3b631e490..5a2184b61 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));