From 0228cf5bc0032de09c86e47ecfa39bc388e9622b Mon Sep 17 00:00:00 2001
From: Matt O'Gorman <mogorman@digium.com>
Date: Thu, 12 Jan 2006 19:09:36 +0000
Subject: [PATCH] Minor revisions from bug 6090

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8022 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 4b8fc814aa..5825f92d1c 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -340,7 +340,7 @@ static char *descrip_vmain =
 "    g(#) - Use the specified amount of gain when recording a voicemail\n"
 "           message. The units are whole-number decibels (dB).\n"
 "    s    - Skip checking the passcode for the mailbox.\n"
-"    a(#) - Skip folder prompt and go directly to folder specified, default 1\n";
+"    a(#) - Skip folder prompt and go directly to folder specified, defaults to 1\n";
 
 static char *synopsis_vm_box_exists =
 "Check to see if Voicemail mailbox exists";
@@ -5080,7 +5080,7 @@ static int vm_execmain(struct ast_channel *chan, void *data)
 					LOCAL_USER_REMOVE(u);
 					return -1;
 				}
-				else if ( play_folder > 9 || play_folder < 1) {
+				else if ( play_folder > 9 || play_folder < 0) {
 					ast_log(LOG_WARNING, "Invalid value '%d' provided for folder autoplay option\n", play_folder);
 					LOCAL_USER_REMOVE(u);
 					return -1;
-- 
GitLab