mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 73675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r73675 | mmichelson | 2007-07-06 10:27:28 -0500 (Fri, 06 Jul 2007) | 13 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@73676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1284,7 +1284,7 @@ static struct ast_channel *agent_request(const char *type, int format, void *dat
|
|||||||
#if 0
|
#if 0
|
||||||
ast_log(LOG_NOTICE, "Time now: %ld, Time of lastdisc: %ld\n", tv.tv_sec, p->lastdisc.tv_sec);
|
ast_log(LOG_NOTICE, "Time now: %ld, Time of lastdisc: %ld\n", tv.tv_sec, p->lastdisc.tv_sec);
|
||||||
#endif
|
#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);
|
p->lastdisc = ast_tv(0, 0);
|
||||||
/* Agent must be registered, but not have any active call, and not be in a waiting state */
|
/* Agent must be registered, but not have any active call, and not be in a waiting state */
|
||||||
if (!p->owner && p->chan) {
|
if (!p->owner && p->chan) {
|
||||||
|
Reference in New Issue
Block a user