From: BJ Weschke Date: Sun, 3 Sep 2006 17:12:30 +0000 (+0000) Subject: Don't keep trying the same member in certain strategies when members of the queue... X-Git-Tag: 1.4.0-beta1~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91f4aa93bb107f82cf19cc996ef3c171b918b526;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) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41879 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 255da9cede..5812180430 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1600,6 +1600,11 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *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)