diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-25 20:39:19 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-25 20:39:19 +0000 |
commit | 43e0f52600c3a8c6ae5387e7ea7f021c15220eb8 (patch) | |
tree | 07c29cd5f5f7d95060c01ae51c8c44e707be520f /apps/app_voicemail.c | |
parent | b151666d4cf4d309114966e814b320a906ce107e (diff) |
correct logic errors (issue #5258)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-x | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a1c759bc8..4621cd513 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); |