diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c95279f782ba4bb500d09c4d736a1c63f518030b..fd78084b1f564d1bea658db11a1e30f27527beaf 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12225,7 +12225,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));