Asterisk not recognizing new voicemails in vm directory

We have run into an issue that googling hasn’t helped. A caller leaves a voicemail for an extension. The voicemail configuration for the extension provides that the vm be forwarded to the users email, and that works fine. the config does not say to delete the vm after sending the email, and when I look in /var/spool/asterisk/voicemail/default/EXT/INBOX I can see all the new message files for the extension. However, if the user dials the vm system from his extension using *97, the system reports that he has no new messages. The permissions look correct on the INBOX directory; the voicemail.conf looks fine too. Any ides would be appreciated.

you say that the permissions look correct but you don’t say what they are… At the same time which user is asterisk running as?

The answer to both questions should be the user and group asterisk. If not that is your problem. Common issue is that you stopped and restarted asterisk as root and that causes all kinds of problems…

It actually did turn out to be a permissions issue, the sticky bit was on. After going over this with everyone here I think the problem was caused by exactly what you indicate — a stopped and restarted asterisk as root at the wrong time. Apparently at the same time as one tech support rep was creating the new user extension (and voice mail) another support rep was doing an update to something else on the box. Once I turned off the sticky bit on the users voicemail directory everything was fine. Thanks Much for all the input…