mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
Don't keep trying the same member in certain strategies when members of the queue are unavailable (#7278 - diLLec reported and patched) - This should have been patched here first and then merged into /trunk. My bad!
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1518,6 +1518,11 @@ static int ring_entry(struct queue_ent *qe, struct localuser *tmp, int *busies)
|
|||||||
ast_cdr_busy(qe->chan->cdr);
|
ast_cdr_busy(qe->chan->cdr);
|
||||||
tmp->stillgoing = 0;
|
tmp->stillgoing = 0;
|
||||||
update_dial_status(qe->parent, tmp->member, status);
|
update_dial_status(qe->parent, tmp->member, status);
|
||||||
|
|
||||||
|
ast_mutex_lock(&qe->parent->lock);
|
||||||
|
qe->parent->rrpos++;
|
||||||
|
ast_mutex_unlock(&qe->parent->lock);
|
||||||
|
|
||||||
(*busies)++;
|
(*busies)++;
|
||||||
return 0;
|
return 0;
|
||||||
} else if (status != tmp->oldstatus)
|
} else if (status != tmp->oldstatus)
|
||||||
|
Reference in New Issue
Block a user