mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Flesh out remaining "rrmemory" logic
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -599,8 +599,15 @@ static int store_next(struct queue_ent *qe, struct localuser *outgoing)
|
|||||||
qe->parent->rrpos = best->metric % 1000;
|
qe->parent->rrpos = best->metric % 1000;
|
||||||
} else {
|
} else {
|
||||||
/* Just increment rrpos */
|
/* Just increment rrpos */
|
||||||
qe->parent->rrpos++;
|
if (!qe->parent->wrapped) {
|
||||||
|
/* No more channels, start over */
|
||||||
|
qe->parent->rrpos = 0;
|
||||||
|
} else {
|
||||||
|
/* Prioritize next entry */
|
||||||
|
qe->parent->rrpos++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
qe->parent->wrapped = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user