Fix hint case sensitivity (bug #5856)
authorMark Spencer <markster@digium.com>
Fri, 25 Nov 2005 19:52:30 +0000 (19:52 +0000)
committerMark Spencer <markster@digium.com>
Fri, 25 Nov 2005 19:52:30 +0000 (19:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7197 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index f16b6e2..950cc2f 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -1888,7 +1888,7 @@ void ast_hint_state_changed(const char *device)
                ast_copy_string(buf, ast_get_extension_app(hint->exten), sizeof(buf));
                parse = buf;
                for (cur = strsep(&parse, "&"); cur; cur = strsep(&parse, "&")) {
-                       if (strcmp(cur, device))
+                       if (strcasecmp(cur, device))
                                continue;
 
                        /* Get device state for this hint */