diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-06 15:27:28 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-06 15:27:28 +0000 |
commit | 3e24f303a373abcd21f0de6c7c89d3a2ded76d73 (patch) | |
tree | 48f13bff5a3d58e1b628d45d55ff1e757713ab72 | |
parent | f511be4109ef81fd1478684c397c97587df57af2 (diff) |
Merged revisions 73674 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r73674 | mmichelson | 2007-07-06 10:26:40 -0500 (Fri, 06 Jul 2007) | 5 lines
Fixed a bug wherein agents get stuck busy. (issue 9618, reported by jiddings, patched by moi)
closes issue #9618
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73675 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 905a0d85d..ec5805fff 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -1347,7 +1347,7 @@ static struct ast_channel *agent_request(const char *type, int format, void *dat #if 0 ast_log(LOG_NOTICE, "Time now: %ld, Time of lastdisc: %ld\n", tv.tv_sec, p->lastdisc.tv_sec); #endif - if (!p->lastdisc.tv_sec || (tv.tv_sec > p->lastdisc.tv_sec)) { + if (!p->lastdisc.tv_sec || (tv.tv_sec >= p->lastdisc.tv_sec)) { p->lastdisc = ast_tv(0, 0); /* Agent must be registered, but not have any active call, and not be in a waiting state */ if (!p->owner && p->chan) { |