[Asterisk-code-review] Fix in QueueStatus and QueueSummary in AMI Actions to be (asterisk[master])
Javier Acosta
asteriskteam at digium.com
Mon Apr 25 07:23:08 CDT 2016
Javier Acosta has uploaded a new change for review.
https://gerrit.asterisk.org/2695
Change subject: Fix in QueueStatus and QueueSummary in AMI Actions to be
......................................................................
Fix in QueueStatus and QueueSummary in AMI Actions to be
case insensitive to QueueName filters
Change-Id: I9576f0d537fc3760708397660e4e68c090b60c9e
---
M apps/app_queue.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/95/2695/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/2695
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9576f0d537fc3760708397660e4e68c090b60c9e
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Javier Acosta <javier.acosta at beeonline.es>
More information about the asterisk-code-review
mailing list