Make status update on agents properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5272 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
522efe84f8
commit
62717bd797
|
@ -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);
|
||||
|
|
Reference in New Issue