Don't keep trying the same member in certain strategies when members of the queue...
authorBJ Weschke <bweschke@btwtech.com>
Sun, 3 Sep 2006 17:12:30 +0000 (17:12 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Sun, 3 Sep 2006 17:12:30 +0000 (17:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41879 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 255da9c..5812180 100644 (file)
@@ -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)