]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Add member flag "in_call" to prevent reading wrong lastcall time 80/1880/4
authorMartin Tomec <tomec.martin@gmail.com>
Tue, 29 Dec 2015 10:31:19 +0000 (11:31 +0100)
committerMartin Tomec <tomec.martin@gmail.com>
Tue, 5 Jan 2016 16:52:12 +0000 (17:52 +0100)
commit338a8ffed673e4c3a828c7c216575f8e3e712350
tree1e8cbf14a2a304bf6b1e72fcd4f341b61d7c2850
parente13719bff1c4a723edf08252da17fef04b6f88cf
app_queue: Add member flag "in_call" to prevent reading wrong lastcall time

Member lastcall time is updated later than member status. There was chance to
check wrapuptime for available member with wrong (old) lastcall time.
New boolean flag "in_call" is set to true right before connecting call, and
reset to false after update of lastcall time. Members with "in_call" set to true
are treat as unavailable.

ASTERISK-19820 #close

Change-Id: I1923230cf9859ee51563a8ed420a0628b4d2e500
apps/app_queue.c