correct sense of logic test (issue #5259)
[asterisk/asterisk.git] / apps / app_chanisavail.c
index 14e66e0..791851f 100755 (executable)
@@ -135,7 +135,7 @@ static int chanavail_exec(struct ast_channel *chan, void *data)
        if (res < 1) {
                pbx_builtin_setvar_helper(chan, "AVAILCHAN", "");
                pbx_builtin_setvar_helper(chan, "AVAILORIGCHAN", "");
-               if (!ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101))
+               if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101))
                        return -1;
        }