summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-07-26 21:53:56 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-07-26 21:53:56 +0000
commitc4c9401efdbd8cecc22a2eb046fe02b813f22590 (patch)
tree1381c154064d09709a0693cb483cec0537fd5ac4 /apps
parent2c0f42361ecec089aa47bc3b7659b08e70c26fdb (diff)
make queue and interface name matching case-insensitive (bug #4815)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 771794338..b56741a0e 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2175,7 +2175,7 @@ static struct member * interface_exists(struct ast_call_queue *q, char *interfac
if (q)
for (mem = q->members; mem; mem = mem->next)
- if (!strcmp(interface, mem->interface))
+ if (!strcasecmp(interface, mem->interface))
return mem;
return NULL;
@@ -2328,7 +2328,7 @@ static int set_member_paused(char *queuename, char *interface, int paused)
ast_mutex_lock(&qlock);
for (q = queues ; q ; q = q->next) {
ast_mutex_lock(&q->lock);
- if (ast_strlen_zero(queuename) || !strcmp(q->name, queuename)) {
+ if (ast_strlen_zero(queuename) || !strcasecmp(q->name, queuename)) {
if ((mem = interface_exists(q, interface))) {
found++;
if (mem->paused == paused)