dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2003-08-14 21:04:54 +00:00
parent 24183cf0a7
commit 9e8cdb93ce
1 changed files with 2 additions and 0 deletions

View File

@ -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"