mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
only compare the queue entry's max penalty to the member's penalty when the queue entry actually has a non-zero penalty
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2190,7 +2190,7 @@ static int update_queue(struct call_queue *q, struct member *member)
|
|||||||
|
|
||||||
static int calc_metric(struct call_queue *q, struct member *mem, int pos, struct queue_ent *qe, struct callattempt *tmp)
|
static int calc_metric(struct call_queue *q, struct member *mem, int pos, struct queue_ent *qe, struct callattempt *tmp)
|
||||||
{
|
{
|
||||||
if (mem->penalty > qe->max_penalty)
|
if (qe->max_penalty && (mem->penalty > qe->max_penalty))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
switch (q->strategy) {
|
switch (q->strategy) {
|
||||||
|
Reference in New Issue
Block a user