Visual Voicemail

We have an issue with Visual Voicemail when if you try to play a new message, it fails…

== Parsing ‘/var/spool/asterisk/voicemail/default/5466/INBOX/msg0000.txt’: Found
[2017-02-20 15:46:39] WARNING[3071]: file.c:1247 ast_streamfile: Unable to open /var/spool/asterisk/voicemail/default/5466/INBOX/msg0000 (format (alaw)): No such file or directory
[2017-02-20 15:46:39] WARNING[3071]: app_voicemail.c:11131 play_message_by_id_helper: Playback of message /var/spool/asterisk/voicemail/default/5466/INBOX/msg0000 failed
[2017-02-20 15:46:39] NOTICE[3071]: app_voicemail.c:8999 close_mailbox: -1 messages received after mailbox opened.

If you try again, the message is considered old, and works fine:

== Parsing ‘/var/spool/asterisk/voicemail/default/5466/Old/msg0000.txt’: Found
== Parsing ‘/var/spool/asterisk/voicemail/default/5466/Old/msg0001.txt’: Found
== Parsing ‘/var/spool/asterisk/voicemail/default/5466/Old/msg0002.txt’: Found
– <SIP/5466-00000038> Playing ‘/var/spool/asterisk/voicemail/default/5466/Old/msg0002.slin’ (language ‘en_NZ’)
> 0x7eff00004990 – Probation passed - setting RTP source address to 192.168.48.11:12100

I notice it is looking for /var/spool/asterisk/voicemail/default/5466/INBOX/msg0000 (format (alaw)), in that path there is a msg0000.wav file (not sure if that is the issue or not?)

Cheers

I would start by verifying that the file is actually there when it says it isn’t; in your /var/spool/asterisk/voicemail/default/5466/INBOX folder.

If it is (and it sounds like it may be, because it moves it afterwards), I would check the permissions for that folder structure. Looks like:
owner/group should be asterisk/asterisk
and permissions should be 775

… if the owner, group, or permissions are wrong, then you wouldn’t be able to open it.

Don’t be confused by this. The Asterisk voicemail app renames all the files when they are moved. So if you have only one message in the INBOX it will be msg0000.wav but once you listen to it and it moves to the Old folder (or you move it to any other folder) if there are already messages in that folder the newly moved message will be incremented +1 of what the highest number message already in the folder.

So if the Old folder already had 5 messages (msg0000-msg0004) the moved file becomes msg0005. They do not keep the same file name as what was in their original folder.