summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorScott Griepentrog <sgriepentrog@digium.com>2014-07-23 14:00:09 +0000
committerScott Griepentrog <sgriepentrog@digium.com>2014-07-23 14:00:09 +0000
commitb9ac1feed747bcb128211e139c67203f882a1d56 (patch)
treeb4a1b1bef987c000b1deff20cb16809f889a15f4 /apps/app_voicemail.c
parentef697de4a56b42da2399a368e36e54eea9b7ce3d (diff)
app_voicemail: use a consistent generator string
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 ........ Merged revisions 419285 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 6bd075100..4bcb50b5b 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1830,7 +1830,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");
ast_config_destroy(cfg);
break;
}
@@ -1873,7 +1873,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");
}
ast_config_destroy(cfg);