mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	use the proper named constants for checking device state, and don't treat UNKNOWN as not available in autofill mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -2037,11 +2037,13 @@ static int is_our_turn(struct queue_ent *qe) | |||||||
| 				ast_log(LOG_DEBUG, "Even though there are %d available members, the strategy is ringall so only the head call is allowed in\n", avl); | 				ast_log(LOG_DEBUG, "Even though there are %d available members, the strategy is ringall so only the head call is allowed in\n", avl); | ||||||
| 			avl = 1; | 			avl = 1; | ||||||
| 		} else { | 		} else { | ||||||
| 			cur = qe->parent->members; | 			for (cur = qe->parent->members; cur; cur = cur->next) { | ||||||
| 			while (cur) { | 				switch (cur->status) { | ||||||
| 				if (cur->status == 1)  | 				case AST_DEVICE_NOT_INUSE: | ||||||
|  | 				case AST_DEVICE_UNKNOWN: | ||||||
| 					avl++; | 					avl++; | ||||||
| 				cur = cur->next; | 					break; | ||||||
|  | 				} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user