[Asterisk-code-review] Fix case sensitive actions in AMI QueueSummary and QueueStatus (asterisk[11])

Richard Mudgett asteriskteam at digium.com
Mon Apr 25 14:21:27 CDT 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/2699

Change subject: Fix case sensitive actions in AMI QueueSummary and QueueStatus
......................................................................

Fix case sensitive actions in AMI QueueSummary and QueueStatus

ASTERISK-25954 #close
Reported by: Javier Acosta

Change-Id: I00be83d45cc7e8385de2523012bd196aafeeb256
(cherry picked from commit c0688a6398f27296ff849848a2e416e036d794e3)
---
M apps/app_queue.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/99/2699/1

diff --git a/apps/app_queue.c b/apps/app_queue.c
index fa432cb..d2a9613 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -8769,7 +8769,7 @@
 		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;
@@ -8845,7 +8845,7 @@
 		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"

-- 
To view, visit https://gerrit.asterisk.org/2699
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I00be83d45cc7e8385de2523012bd196aafeeb256
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Javier Acosta <javier.acosta at beeonline.es>



More information about the asterisk-code-review mailing list