ignore musicclass for music on hold (bug #62)
authorMark Spencer <markster@digium.com>
Thu, 14 Aug 2003 21:04:54 +0000 (21:04 +0000)
committerMark Spencer <markster@digium.com>
Thu, 14 Aug 2003 21:04:54 +0000 (21:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1332 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 5db7ded..6a04aa5 100755 (executable)
@@ -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"