dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2005-03-27 02:09:06 +00:00
parent 522efe84f8
commit 62717bd797
1 changed files with 1 additions and 0 deletions

View File

@ -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);