]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Honor penalty limits of 0
authorKinsey Moore <kmoore@digium.com>
Mon, 11 Nov 2013 15:36:23 +0000 (15:36 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 11 Nov 2013 15:36:23 +0000 (15:36 +0000)
commit33a9e71b7e30a273680d31ac3f467a7f4101b6a9
tree47bd5a6f318690de7d6fbba2da9068275cd9d5f0
parent96048afd61916ffeca553c1daa97a2ad0c3480a0
app_queue: Honor penalty limits of 0

In the current app_queue code from 1.8 up to trunk the upper and lower
penalties can be set to 0 but the value is interpreted to be disabled
instead of actually setting limits. This is especially evident if min
and max limits are set to 0 and members with penalties of 0 and 1 are
in the queue since the member with penalty 1 will still receive calls.
This patch adjusts the special disabled value to be INT_MAX instead of
0.

(closes issue ASTERISK-20862)
Review: https://reviewboard.asterisk.org/r/2995/
Reported by: Schmooze Com
........

Merged revisions 402645 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

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

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