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

Javier Acosta asteriskteam at digium.com
Mon Apr 25 08:11:44 CDT 2016


Javier Acosta has uploaded a new change for review.

  https://gerrit.asterisk.org/2696

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

Fix case sensitive actions in AMI QueueSummary and QueueStatus

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


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/96/2696/1

diff --git a/apps/app_queue.c b/apps/app_queue.c
index 34fdfe7..48547ea 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -9472,7 +9472,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;
@@ -9550,7 +9550,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/2696
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I00be83d45cc7e8385de2523012bd196aafeeb256
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Javier Acosta <javier.acosta at beeonline.es>



More information about the asterisk-code-review mailing list