]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_voicemail: use a consistent generator string
authorScott Griepentrog <sgriepentrog@digium.com>
Wed, 23 Jul 2014 14:38:35 +0000 (14:38 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Wed, 23 Jul 2014 14:38:35 +0000 (14:38 +0000)
When updating voicemail.conf when a user changes
their pin, change the generator string to be the
same as the module name when reading so that the
same config_hook will be called.

Review: https://reviewboard.asterisk.org/r/3837/
........

Merged revisions 419284 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/1.8.15@419309 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 1c3974e5157fe4ba5d1b0d7e8e0ee3bbba6656e9..3ae961fcb4cf716c8bb3e4775e0f2dfdfa4b8fdc 100644 (file)
@@ -1626,7 +1626,7 @@ static void vm_change_password(struct ast_vm_user *vmu, const char *newpassword)
                                ast_test_suite_event_notify("PASSWORDCHANGED", "Message: voicemail.conf updated with new password\r\nPasswordSource: voicemail.conf");
                                reset_user_pw(vmu->context, vmu->mailbox, newpassword);
                                ast_copy_string(vmu->password, newpassword, sizeof(vmu->password));
-                               ast_config_text_file_save(VOICEMAIL_CONFIG, cfg, "AppVoicemail");
+                               ast_config_text_file_save(VOICEMAIL_CONFIG, cfg, "app_voicemail");
                                break;
                        }
                }
@@ -1666,7 +1666,7 @@ static void vm_change_password(struct ast_vm_user *vmu, const char *newpassword)
                                ast_test_suite_event_notify("PASSWORDCHANGED", "Message: users.conf updated with new password\r\nPasswordSource: users.conf");
                                reset_user_pw(vmu->context, vmu->mailbox, newpassword);
                                ast_copy_string(vmu->password, newpassword, sizeof(vmu->password));
-                               ast_config_text_file_save("users.conf", cfg, "AppVoicemail");
+                               ast_config_text_file_save("users.conf", cfg, "app_voicemail");
                        }
                }
        }