Skip to content
Snippets Groups Projects
Commit 32b3083b authored by Mark Spencer's avatar Mark Spencer
Browse files

Make status update on agents properly

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent fdc40215
No related branches found
No related tags found
No related merge requests found
...@@ -681,6 +681,7 @@ static int agent_hangup(struct ast_channel *ast) ...@@ -681,6 +681,7 @@ static int agent_hangup(struct ast_channel *ast)
ast_softhangup(p->chan, AST_SOFTHANGUP_EXPLICIT); ast_softhangup(p->chan, AST_SOFTHANGUP_EXPLICIT);
ast_mutex_unlock(&p->chan->lock); ast_mutex_unlock(&p->chan->lock);
} else { } else {
ast_device_state_changed("Agent/%s", p->agent);
ast_mutex_lock(&p->chan->lock); ast_mutex_lock(&p->chan->lock);
ast_moh_start(p->chan, p->moh); ast_moh_start(p->chan, p->moh);
ast_mutex_unlock(&p->chan->lock); ast_mutex_unlock(&p->chan->lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment