Hi, I configured an extension with an Email Address and “Delete Voicemail” to Yes. When someone call the phone and leave a message, it is being sent to this user email address but the messages is still on the server. I can see it in /var/spool/asterisk/voicemail/default/EXT/INBOX and I can also see the total number of messages in Settings / Voicemail Admin in the dashboard.
I see nothing special in the log. Why would that be?
I did a call trace but there is absolutely nothing useful in it, the user leaves a message, everything is working fine and there is no information, no error message about the voicemail being deleted or not. FreePBX just does not delete the message even though it is configured to do so.
I thought someone knew of a specific setting that would make this problem, there’s probably something easy as a solution. I doubt it’s permission, everything in /var/spool/asterisk is owned by asterisk:asterisk
Don’t have much time to waste on this, I will just set the maximum messages of voicemail to 9999 in Settings / Voicemail Admin / Settings / Limits. They dont take much space and we have plenty. They should be good forever now.
The authoritative answer is going to be in /etc/asterisk/voicemail.conf where the entry for the mailbox should have “delete=yes” in the string of options.
However, nielsen hit it right, I did a systemctl restart asterisk and now it’s working like it should, problem solved! I knew the solution was easy, I was just too dumb to figure it out alone