mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-29 07:24:55 +00:00 
			
		
		
		
	fix queue weight feature - compare member interfaces instead of pointers to
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
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user