Voicemail.conf spontaneously changes

Status
Not open for further replies.

yzpilot

Joined
Sep 12, 2011
Messages
10
Reaction score
0
I've got a weird deal I need some help on. I just installed my first Elastix units (was a Trixbox and raw Asterisk shop before). I installed 3 systems and two of them are exhibiting this odd behavior where the Voicemail.conf file is spontaneously changed back to it's default form with no extensions listed.

The result is of course that voicemail goes away for all extensions. Since this happens about once a day I've made a backup of the voicemail.conf file and just copy the correct one back into place, but obviously that's not a good long-term solution.

For a few days I also set the file as read-only and that prevented the overwrite, but users can't change passwords, so that doesn't work.

Now I have a script running that checks the voicemail.conf file every minute and emails me when this happens so that I can try to change it back before anyone notices.

First, the easy question: Has anyone seen this happen and solved it?

Assuming the answer that question is no, what could possibly be executed that would be making changes to this file? I'm 99% sure it's not the UI that's doing it because the file modification times on the new file reflect that the overwrite happened when there was no one logged in. Is there something that fires at pre-defined intervals and checks config file syntax or something? I know that sounds bizarre, but that appears to be what's happening.

Also possibly important. I manually added a line to the voicemail.conf file "#include vm_custom.cfg" This file includes a bunch of voicemail only extensions. That line is the obvious place to look, but I have this line on all three systems and only two are exhibiting the problem, so the problem must be more complex.
 
What version of Elastix are you running? I seem to remember a similar issue in Trixbox, but that was well over a year ago. I think it may have been FreePBX related, this is why I ask what version you're running.

Andrey
 
I'm running Elastix 2.0.0
 
Well, I appear to have resolved this. I lucked out. One of the three PBXs I installed didn't exhibit the issue, so I was able to identify the cause through trial and error trying to make the two non-working units match the 3rd working configuration.

For some reason the two servers that were spontaneously changing had extra blank lines in their voicemail.conf file. I'm not sure how the blank lines got there. I did not add them manually.

I manually edited the voicemail.conf file removing the blank lines and the spontaneous changes stopped.

Here's what the non-working file looked like:

[general]
#include "vm_general.inc"
#include "vm_email.inc"





[default]
#include vm_custom.cfg

100 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
101 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
102 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
103 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
104 => 104,Employee,,,attach=no|saycid=no|envelope=no|delete=no

105 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
106 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
107 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
108 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
109 => 1090,Employee,,,attach=no|saycid=no|envelope=no|delete=no
110 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
111 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
112 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
115 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
116 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
123 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
125 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no

Here's what the manually corrected working version looks like:

general]
#include "vm_general.inc"
#include "vm_email.inc"
[default]
#include vm_custom.cfg

100 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
101 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
102 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
103 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
104 => 104,Employee,,,attach=no|saycid=no|envelope=no|delete=no

105 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
106 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
107 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
108 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
109 => 1090,Employee,,,attach=no|saycid=no|envelope=no|delete=no
110 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
111 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
112 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
115 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
116 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
123 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no
125 => 0000,Employee,,,attach=no|saycid=no|envelope=no|delete=no

The only difference is the blank lines before the [default] section
 
Status
Not open for further replies.

Latest Posts

Members Online Now

Forum statistics

Threads
111,861
Messages
589,440
Members
164,701
Latest member
yarusemiKK