make queue and interface name matching case-insensitive (bug #4815)
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 26 Jul 2005 21:53:56 +0000 (21:53 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 26 Jul 2005 21:53:56 +0000 (21:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6226 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 7717943..b56741a 100755 (executable)
@@ -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)