Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv9121/channels

Modified Files:
        chan_agent.c 
Log Message:
don't check 'acknowledged' for setting lastdisc, since it's guaranteed to be 
zero at this point (issue #5254)


Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- chan_agent.c        28 Sep 2005 23:10:13 -0000      1.155
+++ chan_agent.c        5 Oct 2005 21:27:38 -0000       1.156
@@ -753,7 +753,7 @@
                /* If they're dead, go ahead and hang up on the agent now */
                if (!ast_strlen_zero(p->loginchan)) {
                        /* Store last disconnect time */
-                       if (p->wrapuptime && p->acknowledged)
+                       if (p->wrapuptime)
                                p->lastdisc = ast_tvadd(ast_tvnow(), 
ast_samp2tv(p->wrapuptime, 1000));
                        else
                                p->lastdisc = ast_tv(0,0);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to