]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: Improved feedback to user when chaning vm passwords.
authorMichael S Collins <msc@freeswitch.org>
Wed, 9 May 2012 22:18:12 +0000 (15:18 -0700)
committerMichael S Collins <msc@freeswitch.org>
Wed, 9 May 2012 22:20:40 +0000 (15:20 -0700)
conf/vanilla/lang/en/vm/sounds.xml
src/mod/applications/mod_voicemail/mod_voicemail.c

index ff8844ae9744b68c9bfb368c9605bd084906a54a..fdef472a5b6e9a4e7a60e0675ea91eeb6d96aa83 100644 (file)
@@ -29,7 +29,7 @@
   <macro name="voicemail_change_pass_success">
     <input pattern="(.*)">
       <match>
-        <action function="play-file" data="ivr/ivr-Thank_you.wav"/>
+        <action function="play-file" data="voicemail/vm-password_has_been_changed.wav"/>
       </match>
     </input>
   </macro>
@@ -37,7 +37,7 @@
   <macro name="voicemail_change_pass_fail">
     <input pattern="(.*)">
       <match>
-        <action function="play-file" data="voicemail/vm-fail_auth.wav"/>
+        <action function="play-file" data="voicemail/vm-password_not_valid.wav"/>
       </match>
     </input>
   </macro>
index 44bafb3ea2f5f48826fdd5473f542aa57fdb5aeb..2ed70ce05d886d615b6aaa9066e56cd894853d5b 100644 (file)
@@ -2197,8 +2197,7 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p
                                                
                                                if (fail) {
                                                        /* add feedback for user - let him/her know that the password they tried to change to is not allowed */
-                                                       /* change the following macro to VM_CHANGE_PASS_FAIL_MACRO when new prompts have been recorded */
-                                                       switch_ivr_phrase_macro(session, VM_FAIL_AUTH_MACRO, NULL, NULL, NULL);
+                                                       switch_ivr_phrase_macro(session, VM_CHANGE_PASS_FAIL_MACRO, NULL, NULL, NULL);
                                                } else {
                                                        sql = switch_mprintf("update voicemail_prefs set password='%s' where username='%s' and domain='%s'", buf, myid, domain_name);
                                                        vm_execute_sql(profile, sql, profile->mutex);