ignore musicclass for music on hold (bug #62)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent c7eef6e141
commit 4c17496489

@ -1026,9 +1026,11 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
ast_mutex_unlock(&p->lock);
ast_mutex_unlock(&agentlock);
} else if (!res) {
#ifdef HONOR_MUSIC_CLASS
/* check if the moh class was changed with setmusiconhold */
if (*(chan->musicclass))
strncpy(p->moh, chan->musicclass, sizeof(p->moh) - 1);
#endif
ast_moh_start(chan, p->moh);
manager_event(EVENT_FLAG_AGENT, "Agentlogin",
"Agent: %s\r\n"

Loading…
Cancel
Save