]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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:13:38 +0000 (17:13 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Sun, 3 Sep 2006 17:13:38 +0000 (17:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41880 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index ffd2c7f2e7c69a2c9313e550518ea0558f356225..a03dd8522f843fe6bd51eafc69ba71a5078734a7 100644 (file)
@@ -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)