summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorMatt O'Gorman <mogorman@digium.com>2006-01-12 20:04:52 +0000
committerMatt O'Gorman <mogorman@digium.com>2006-01-12 20:04:52 +0000
commitac2732ef4e3c54bab42f1fa7cfb66c8412a1d92f (patch)
tree21afab601d7cd3b5e74bf92a98a7ede64ffc6b22 /apps/app_voicemail.c
parent791370e026758c2cab2f0b5ffa4fd84efcb95713 (diff)
I will never touch VM again...
thanks qwell for spotting mistakes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 690f8cdc7..60129e66d 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -340,7 +340,8 @@ 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, defaults to 1\n";
+" a(#) - Skip folder prompt and go directly to folder specified.
+" Defaults to INBOX\n";
static char *synopsis_vm_box_exists =
"Check to see if Voicemail mailbox exists";
@@ -5064,7 +5065,7 @@ static int vm_execmain(struct ast_channel *chan, void *data)
}
if (ast_test_flag(&flags, OPT_RECORDGAIN)) {
int gain;
- if(opts[OPT_ARG_PLAYFOLDER]) {
+ if(opts[OPT_ARG__RECORDGAIN]) {
if (sscanf(opts[OPT_ARG_RECORDGAIN], "%d", &gain) != 1) {
ast_log(LOG_WARNING, "Invalid value '%s' provided for record gain option\n", opts[OPT_ARG_RECORDGAIN]);
LOCAL_USER_REMOVE(u);