From: Scott Griepentrog Date: Wed, 23 Jul 2014 13:21:40 +0000 (+0000) Subject: app_voicemail: use a consistent generator string X-Git-Tag: 11.12.0-rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59795008d51c84a10b6e1f038e8d1fa06ec5e5a6;p=thirdparty%2Fasterisk.git 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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@419284 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 89c42eef81..4015866eba 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1749,7 +1749,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; } @@ -1792,7 +1792,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);