]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6219 --resolve
authorBrian West <brian@freeswitch.org>
Wed, 19 Feb 2014 14:42:19 +0000 (08:42 -0600)
committerBrian West <brian@freeswitch.org>
Wed, 19 Feb 2014 14:42:19 +0000 (08:42 -0600)
src/mod/applications/mod_cidlookup/mod_cidlookup.c

index 60a7b352937d34e9f4c6d8fecd5dd18d20ee83b1..34d2104d5fc847e88d0c09af314ee0c858c540f0 100755 (executable)
@@ -409,8 +409,8 @@ static long do_lookup_url(switch_memory_pool_t *pool, switch_event_t *event, cha
 
        if (http_data.stream.data && !zstr((char *) http_data.stream.data) && strcmp(" ", http_data.stream.data)) {
 
-               /* don't return UNKNOWN */
-               if (strcmp("UNKNOWN", http_data.stream.data) || strcmp("UNAVAILABLE", http_data.stream.data)) {
+               /* don't return UNKNOWN or UNAVAILABLE */
+               if (strcasecmp("UNKNOWN", http_data.stream.data) && strcasecmp("UNAVAILABLE", http_data.stream.data)) {
                        *response = switch_core_strdup(pool, http_data.stream.data);
                }
        }