Make status update on agents properly
authorMark Spencer <markster@digium.com>
Sun, 27 Mar 2005 02:09:06 +0000 (02:09 +0000)
committerMark Spencer <markster@digium.com>
Sun, 27 Mar 2005 02:09:06 +0000 (02:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5272 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 3e0749c..1d59282 100755 (executable)
@@ -681,6 +681,7 @@ static int agent_hangup(struct ast_channel *ast)
                        ast_softhangup(p->chan, AST_SOFTHANGUP_EXPLICIT);
                        ast_mutex_unlock(&p->chan->lock);
                } else {
+                       ast_device_state_changed("Agent/%s", p->agent);
                        ast_mutex_lock(&p->chan->lock);
                        ast_moh_start(p->chan, p->moh);
                        ast_mutex_unlock(&p->chan->lock);