[asterisk-commits] tilghman: branch 1.6.2 r218364 - in /branches/1.6.2: ./ apps/ configs/ sounds/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Sep 14 14:49:36 CDT 2009
Author: tilghman
Date: Mon Sep 14 14:49:31 2009
New Revision: 218364
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=218364
Log:
Merged revisions 218361 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r218361 | tilghman | 2009-09-14 14:29:48 -0500 (Mon, 14 Sep 2009) | 11 lines
Recorded merge of revisions 218331 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r218331 | tilghman | 2009-09-14 14:16:35 -0500 (Mon, 14 Sep 2009) | 4 lines
Don't say "Please try again" if we don't give the user another chance to try again.
(issue #15055, SWP-129)
Reported by: jthurman
........
................
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/apps/app_voicemail.c
branches/1.6.2/configs/voicemail.conf.sample
branches/1.6.2/sounds/Makefile
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/apps/app_voicemail.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/apps/app_voicemail.c?view=diff&rev=218364&r1=218363&r2=218364
==============================================================================
--- branches/1.6.2/apps/app_voicemail.c (original)
+++ branches/1.6.2/apps/app_voicemail.c Mon Sep 14 14:49:31 2009
@@ -776,6 +776,7 @@
static char vm_reenterpassword[80] = "vm-reenterpassword";
static char vm_mismatch[80] = "vm-mismatch";
static char vm_invalid_password[80] = "vm-invalid-password";
+static char vm_pls_try_again[80] = "vm-pls-try-again";
static struct ast_flags globalflags = {0};
@@ -8374,6 +8375,9 @@
}
if (++tries == 3)
return -1;
+ if (cmd != 0) {
+ cmd = ast_play_and_wait(chan, vm_pls_try_again);
+ }
}
if (pwdchange & PWDCHANGE_INTERNAL)
vm_change_password(vmu, newpassword);
@@ -8471,6 +8475,9 @@
if (cmd != 0) {
ast_log(AST_LOG_NOTICE, "Invalid password for user %s (%s)\n", vms->username, newpassword);
cmd = ast_play_and_wait(chan, vm_invalid_password);
+ if (!cmd) {
+ cmd = ast_play_and_wait(chan, vm_pls_try_again);
+ }
break;
}
newpassword2[1] = '\0';
@@ -8488,6 +8495,9 @@
if (strcmp(newpassword, newpassword2)) {
ast_log(AST_LOG_NOTICE, "Password mismatch for user %s (%s != %s)\n", vms->username, newpassword, newpassword2);
cmd = ast_play_and_wait(chan, vm_mismatch);
+ if (!cmd) {
+ cmd = ast_play_and_wait(chan, vm_pls_try_again);
+ }
break;
}
if (pwdchange & PWDCHANGE_INTERNAL)
@@ -10907,6 +10917,9 @@
ast_copy_string(vm_reenterpassword, val, sizeof(vm_reenterpassword));
if ((val = ast_variable_retrieve(cfg, "general", "vm-mismatch")))
ast_copy_string(vm_mismatch, val, sizeof(vm_mismatch));
+ if ((val = ast_variable_retrieve(cfg, "general", "vm-pls-try-again"))) {
+ ast_copy_string(vm_pls_try_again, val, sizeof(vm_pls_try_again));
+ }
/* load configurable audio prompts */
if ((val = ast_variable_retrieve(cfg, "general", "listen-control-forward-key")) && is_valid_dtmf(val))
ast_copy_string(listen_control_forward_key, val, sizeof(listen_control_forward_key));
Modified: branches/1.6.2/configs/voicemail.conf.sample
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/configs/voicemail.conf.sample?view=diff&rev=218364&r1=218363&r2=218364
==============================================================================
--- branches/1.6.2/configs/voicemail.conf.sample (original)
+++ branches/1.6.2/configs/voicemail.conf.sample Mon Sep 14 14:49:31 2009
@@ -296,10 +296,13 @@
; vm-mismatch=custom_sound
; Customize which sound file is used instead of the default
; prompt that says: "The passwords you entered and re-entered
- ; did not match. Please try again."
+ ; did not match."
; vm-invalid-password=custom_sound
; Customize which sound file is used instead of the default
; prompt that says: ...
+; vm-pls-try-again=custom_sound
+ ; Customize which sound file is used instead of the
+ ; default prompt that says "Please try again."
; listen-control-forward-key=# ; Customize the key that fast-forwards message playback
; listen-control-reverse-key=* ; Customize the key that rewinds message playback
; listen-control-pause-key=0 ; Customize the key that pauses/unpauses message playback
Modified: branches/1.6.2/sounds/Makefile
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/sounds/Makefile?view=diff&rev=218364&r1=218363&r2=218364
==============================================================================
--- branches/1.6.2/sounds/Makefile (original)
+++ branches/1.6.2/sounds/Makefile Mon Sep 14 14:49:31 2009
@@ -17,7 +17,7 @@
SOUNDS_DIR:=$(DESTDIR)$(ASTDATADIR)/sounds
MOH_DIR:=$(DESTDIR)$(ASTDATADIR)/moh
-CORE_SOUNDS_VERSION:=1.4.15
+CORE_SOUNDS_VERSION:=1.4.16
EXTRA_SOUNDS_VERSION:=1.4.9
SOUNDS_URL:=http://downloads.digium.com/pub/telephony/sounds/releases
MCS:=$(subst -EN-,-en-,$(MENUSELECT_CORE_SOUNDS))
More information about the asterisk-commits
mailing list