[Asterisk-cvs] asterisk/channels chan_agent.c,1.155,1.156
kpfleming
kpfleming
Wed Oct 5 17:31:56 CDT 2005
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);
More information about the svn-commits
mailing list