From 43e0f52600c3a8c6ae5387e7ea7f021c15220eb8 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" <kpfleming@digium.com> Date: Sun, 25 Sep 2005 20:39:19 +0000 Subject: [PATCH] correct logic errors (issue #5258) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6651 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a1c759bc8e..4621cd513f 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5536,7 +5536,7 @@ static int vm_exec(struct ast_channel *chan, void *data) if (res == ERROR_LOCK_PATH) { ast_log(LOG_ERROR, "Could not leave voicemail. The path is already locked.\n"); /*Send the call to n+101 priority, where n is the current priority*/ - 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)) ast_log(LOG_WARNING, "Extension %s, priority %d doesn't exist.\n", chan->exten, chan->priority + 101); res = 0; } @@ -5602,7 +5602,7 @@ static int vm_box_exists(struct ast_channel *chan, void *data) } if (find_user(&svm, context, box)) { - 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)) ast_log(LOG_WARNING, "VM box %s@%s exists, but extension %s, priority %d doesn't exist\n", box, context, chan->exten, chan->priority + 101); } LOCAL_USER_REMOVE(u); -- GitLab