Fix hint case sensitivity (bug #5856)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Mark Spencer 20 years ago
parent 6801852c65
commit f831c89066

@ -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 */

Loading…
Cancel
Save