ignore musicclass for music on hold (bug #62)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1332 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
24183cf0a7
commit
9e8cdb93ce
|
@ -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"
|
||||
|
|
Reference in New Issue