mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
only report AGENT_IDLE for callback mode agents when they are actually idle (issue #5902)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1417,7 +1417,7 @@ static int action_agents(struct mansession *s, struct message *m)
|
||||
/* Set a default status. It 'should' get changed. */
|
||||
status = "AGENT_UNKNOWN";
|
||||
|
||||
if (!ast_strlen_zero(p->loginchan)) {
|
||||
if (!ast_strlen_zero(p->loginchan) && !p->chan) {
|
||||
loginChan = p->loginchan;
|
||||
talkingtoChan = "n/a";
|
||||
status = "AGENT_IDLE";
|
||||
|
Reference in New Issue
Block a user