From: BJ Weschke Date: Sun, 3 Sep 2006 17:13:38 +0000 (+0000) Subject: Don't keep trying the same member in certain strategies when members of the queue... X-Git-Tag: 1.2.12~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaf0ad7b779d8adf5d38fa0fbef7db9caafba770;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index ffd2c7f2e7..a03dd8522f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1518,6 +1518,11 @@ static int ring_entry(struct queue_ent *qe, struct localuser *tmp, int *busies) ast_cdr_busy(qe->chan->cdr); tmp->stillgoing = 0; update_dial_status(qe->parent, tmp->member, status); + + ast_mutex_lock(&qe->parent->lock); + qe->parent->rrpos++; + ast_mutex_unlock(&qe->parent->lock); + (*busies)++; return 0; } else if (status != tmp->oldstatus)