don't check 'acknowledged' for setting lastdisc, since it's guaranteed to be zero...
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 5 Oct 2005 21:27:38 +0000 (21:27 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 5 Oct 2005 21:27:38 +0000 (21:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6736 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index e23a4f6..e574a1f 100755 (executable)
@@ -753,7 +753,7 @@ static int agent_hangup(struct ast_channel *ast)
                /* 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);