diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 14:13:43 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 14:13:43 +0000 |
commit | 78681784b9338e3940677470d8923305032aed83 (patch) | |
tree | d616a3e727e95772292d780c46fd647e3a62bdc4 | |
parent | 9b93a8bfcdf9fb70f8847c6943efca2e3e83759e (diff) |
Merged revisions 25563 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r25563 | bweschke | 2006-05-08 10:12:20 -0400 (Mon, 08 May 2006) | 3 lines
Don't show agents as available when they are in wrap-up time. #6726 (ZX81)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25564 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_agent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 585b85f35..171b7dd80 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -1602,7 +1602,10 @@ static int agents_show(int fd, int argc, char **argv) } online_agents++; } else if (!ast_strlen_zero(p->loginchan)) { - snprintf(location, sizeof(location) - 20, "available at '%s'", p->loginchan); + if (ast_tvdiff_ms(ast_tvnow(), p->lastdisc) > 0 || !(p->lastdisc.tv_sec)) + snprintf(location, sizeof(location) - 20, "available at '%s'", p->loginchan); + else + snprintf(location, sizeof(location) - 20, "wrapping up at '%s'", p->loginchan); talkingto[0] = '\0'; online_agents++; if (p->acknowledged) |