dect
/
asterisk
Archived
13
0
Fork 0

Check if the musiconholdclass was changed with setmusiconhold and if yes then play that class

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1096 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
martinp 2003-06-16 16:58:47 +00:00
parent 64a51bf616
commit 6680e0edf6
1 changed files with 3 additions and 0 deletions

View File

@ -592,6 +592,9 @@ static int login_exec(struct ast_channel *chan, void *data)
if (p->chan)
res = -1;
if (!res) {
/* check if the moh class was changed with setmusiconhold */
if (*(chan->musicclass))
strncpy(p->moh, chan->musicclass, sizeof(p->moh) - 1);
ast_moh_start(chan, p->moh);
manager_event(EVENT_FLAG_AGENT, "Agentlogin",
"Agent: %s\r\n"