All pastes #605913 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-06 15:08 UTC
rendered paste body
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) {