Manual update of voicemail

I got a recording (wav file) for an unavailable voicemail. I copied it to the extension in /var/spool/asterisk/voicemail/default/400. But the playback still plays the default unavailable message. Why? How do I fix this?

please post

ls -lsrt /var/spool/asterisk/voicemail/default/400/

total 6524
0 drwxr-xr-x 2 asterisk asterisk 6 Oct 21 16:54 tmp
0 drwxr-xr-x 2 asterisk asterisk 6 Oct 21 16:57 Urgent
0 drwxr-xr-x 2 asterisk asterisk 6 Oct 21 16:57 Old
0 drwxr-xr-x 2 asterisk asterisk 6 Oct 21 16:57 INBOX
52 -rw-r–r-- 1 asterisk asterisk 50284 Oct 21 16:57 greet.wav
3236 -rw-r–r-- 1 asterisk asterisk 3312836 Oct 21 17:05 busy.wav
3236 -rw-r–r-- 1 asterisk asterisk 3312836 Oct 21 17:07 unavail.wav

would it be in a wrong codec?

soxi  /var/spool/asterisk/voicemail/default/400/*.wav

[[email protected] 400]# soxi /var/spool/asterisk/voicemail/default/400/*.wav

Input File : ‘/var/spool/asterisk/voicemail/default/400/busy.wav’
Channels : 2
Sample Rate : 44100
Precision : 16-bit
Duration : 00:00:18.78 = 828198 samples = 1408.5 CDDA sectors
File Size : 3.31M
Bit Rate : 1.41M
Sample Encoding: 16-bit Signed Integer PCM

Input File : ‘/var/spool/asterisk/voicemail/default/400/greet.wav’
Channels : 1
Sample Rate : 8000
Precision : 16-bit
Duration : 00:00:03.14 = 25120 samples ~ 235.5 CDDA sectors
File Size : 50.3k
Bit Rate : 128k
Sample Encoding: 16-bit Signed Integer PCM

Input File : ‘/var/spool/asterisk/voicemail/default/400/unavail.wav’
Channels : 2
Sample Rate : 44100
Precision : 16-bit
Duration : 00:00:18.78 = 828198 samples = 1408.5 CDDA sectors
File Size : 3.31M
Bit Rate : 1.41M
Sample Encoding: 16-bit Signed Integer PCM

Total Duration of 3 files: 00:00:40.70

Same, still plays the default message…

I forgot the mention, the wav file is converted from a *.amr file. I think I’ve used a wrong codec in the conversion

Not codec, just sample rate and number of channels.

Asterisk can’t trans-code sample rates other than 8000 with a precision of 16, with an encoding of slin16 and only with one channel.

Thanks, it’s working. Trans-code to 8000, 16bit, mono from this online converter site: https://audio.online-convert.com/convert-to-wav

Glad you found a solution, but you probably did more work than you needed to. From the VoiceMail widget in UCP you can upload recordings or record thru the browser for Unavailable, Busy etc. By uploading via UCP, the correct recording format is generated automatically.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.