Skip to content
Snippets Groups Projects
Commit 4c174964 authored by Mark Spencer's avatar Mark Spencer
Browse files

ignore musicclass for music on hold (bug #62)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent c7eef6e1
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment