Let Queue wrap up time influence member availability
authorMatthew Jordan <mjordan@digium.com>
Tue, 20 Aug 2013 00:08:33 +0000 (00:08 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 20 Aug 2013 00:08:33 +0000 (00:08 +0000)
commit430bb3bfb3841fcf48996c8cc0ef76f7f88e582e
treed8113ba6b9e7f5242b65d3649a149af417e8344b
parentbfcfa2728fde060eea130393534335c2d7f6b5d4
Let Queue wrap up time influence member availability

Queue members who happen to be in multiple queues at the same time may not
have any wrap up time. This problem occurred due to a code change in Asterisk
11.3.0 that unified device state tracking of Queue members in multiple
Queues (which fixed some other problems, but unfortunately caused this one).

This patch fixes the behavior by having the is_member_available function
check the queue's wrap up time and the time of the member's last call, such
that for a particular queue, the member won't be considered available if their
last call is within the wrap up time.

(closes issue ASTERISK-22189)
Reported by: Tony Lewis
Tested by: Tony Lewis
........

Merged revisions 396948 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c