mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
Check if the musiconholdclass was changed with setmusiconhold and if yes then play that class
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -592,6 +592,9 @@ static int login_exec(struct ast_channel *chan, void *data)
|
|||||||
if (p->chan)
|
if (p->chan)
|
||||||
res = -1;
|
res = -1;
|
||||||
if (!res) {
|
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);
|
ast_moh_start(chan, p->moh);
|
||||||
manager_event(EVENT_FLAG_AGENT, "Agentlogin",
|
manager_event(EVENT_FLAG_AGENT, "Agentlogin",
|
||||||
"Agent: %s\r\n"
|
"Agent: %s\r\n"
|
||||||
|
Reference in New Issue
Block a user