mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Fix case sensitive actions in AMI QueueSummary and QueueStatus
ASTERISK-25954 #close
Reported by: Javier Acosta
Change-Id: I00be83d45cc7e8385de2523012bd196aafeeb256
(cherry picked from commit c0688a6398)
			
			
This commit is contained in:
		| @@ -9599,7 +9599,7 @@ static int manager_queues_summary(struct mansession *s, const struct message *m) | ||||
| 		ao2_lock(q); | ||||
|  | ||||
| 		/* List queue properties */ | ||||
| 		if (ast_strlen_zero(queuefilter) || !strcmp(q->name, queuefilter)) { | ||||
| 		if (ast_strlen_zero(queuefilter) || !strcasecmp(q->name, queuefilter)) { | ||||
| 			/* Reset the necessary local variables if no queuefilter is set*/ | ||||
| 			qmemcount = 0; | ||||
| 			qmemavail = 0; | ||||
| @@ -9677,7 +9677,7 @@ static int manager_queues_status(struct mansession *s, const struct message *m) | ||||
| 		ao2_lock(q); | ||||
|  | ||||
| 		/* List queue properties */ | ||||
| 		if (ast_strlen_zero(queuefilter) || !strcmp(q->name, queuefilter)) { | ||||
| 		if (ast_strlen_zero(queuefilter) || !strcasecmp(q->name, queuefilter)) { | ||||
| 			sl = ((q->callscompleted > 0) ? 100 * ((float)q->callscompletedinsl / (float)q->callscompleted) : 0); | ||||
| 			astman_append(s, "Event: QueueParams\r\n" | ||||
| 				"Queue: %s\r\n" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user