projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b994fca
)
fix queue weight feature - compare member interfaces instead of pointers to
author
Russell Bryant
<russell@russellbryant.com>
Thu, 1 Dec 2005 01:17:41 +0000
(
01:17
+0000)
committer
Russell Bryant
<russell@russellbryant.com>
Thu, 1 Dec 2005 01:17:41 +0000
(
01:17
+0000)
the members, since each queue has its own list of members. (issue #5863)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7248
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_queue.c
patch
|
blob
|
history
diff --git
a/apps/app_queue.c
b/apps/app_queue.c
index
ef8a1b2
..
7f28a6e
100644
(file)
--- a/
apps/app_queue.c
+++ b/
apps/app_queue.c
@@
-1304,7
+1304,7
@@
static int compare_weight(struct ast_call_queue *rq, struct member *member)
ast_mutex_lock(&q->lock);
if (q->count && q->members) {
for (mem = q->members; mem; mem = mem->next) {
- if (mem == member) {
+ if (!strcmp(mem->interface, member->interface)) {
ast_log(LOG_DEBUG, "Found matching member %s in queue '%s'\n", mem->interface, q->name);
if (q->weight > rq->weight) {
ast_log(LOG_DEBUG, "Queue '%s' (weight %d, calls %d) is preferred over '%s' (weight %d, calls %d)\n", q->name, q->weight, q->count, rq->name, rq->weight, rq->count);