correct sense of logic test (issue #5259)
authorKevin P. Fleming <kpfleming@digium.com>
Sun, 25 Sep 2005 20:37:05 +0000 (20:37 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sun, 25 Sep 2005 20:37:05 +0000 (20:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6650 65c4cc65-6c06-0410-ace0-fbb531ad65f3

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;
        }