Voicemail.conf overwritten by App Voicemail

Apparently whenever a user changes their voicemail password (Asterisk 1.4.36), the entire voicemail.conf gets overwritten, removing the includes to FreePBX’s vm_* files. The new file looks like this :

;! Automatically generated configuration file
;! Filename: voicemail.conf (/etc/asterisk/voicemail.conf)
;! Generator: AppVoicemail
;! Creation Date: Thu Jan 13 13:20:41 2011

It seems to me the right thing to do is to parse and modify this file, but that’s not how the Asterisk team chose to do this. Is there an accepted way to prevent the file from being overwritten yet still allow users to update their password via App Voicemail?