putnopvut@putnopvut-desktop:/usr/src/asterisk-1.4$ sudo svn diff Index: channels/chan_agent.c =================================================================== --- channels/chan_agent.c (revision 73399) +++ channels/chan_agent.c (working copy) @@ -1347,7 +1347,7 @@ #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) {