]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Read latest wrapuptime instead of (possibly stale) copy
authorWalter Doekes <walter+asterisk@wjd.nu>
Tue, 16 Jun 2020 13:18:11 +0000 (15:18 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 17 Jun 2020 14:23:34 +0000 (09:23 -0500)
commit266d81c296c33c2ce374ef1a6f17e16e9725e545
tree02434a0a8aaecba52fe5fe7d5e437ef50e22a9d0
parent1684418a65d7a4dade9f945e83a1e18e9e567c2a
app_queue: Read latest wrapuptime instead of (possibly stale) copy

Before this changeset, it was possible that a queue member (agent) was
called even though they just got out of a call, and wrapuptime seconds
hadn't passed yet.

This could happen if a member ended a call _between_ a new call attempt
and asterisk trying that particular member for a new call.

In that case, Asterisk would check the hangup time of the
call-before-the-last-call instead of the hangup time of the-last-call.

ASTERISK-28952

Change-Id: Ie0cab8f0e8d639c01cba633d4968ba19873d80b3
apps/app_queue.c