Asterisk can't play recorded .wav files

  1. 13 years ago

    Hi! I have the tovoicemail.pl script working and the recordings are sent to the correct voicemail account but the verbose output of Asterisk is saying it can't play the .wav format. Possibly something to do with the voicemail.conf? I'm recording normal voicemails as wav|gsm|wav49.

    Here are the error logs from Asterisk:
    [May 11 08:53:30] WARNING[23941]: format_wav.c:148 check_header: Not in mono 2
    [May 11 08:53:30] WARNING[23941]: file.c:385 fn_wrapper: Unable to open format wav
    [May 11 08:53:30] WARNING[23941]: file.c:991 ast_streamfile: Unable to open /var/spool/asterisk/voicemail/default/39/INBOX/msg0000 (format 0x4 (ulaw)): No such file or directory
    [May 11 08:53:30] WARNING[23941]: app_voicemail.c:5814 play_message: Playback of message /var/spool/asterisk/voicemail/default/39/INBOX/msg0000 failed

    I can play the .wav file with a media player after transferring it out of the Asterisk server.

  2. admin

    11 May 2011 Administrator

    Well, the idea is to use the voicemail explorer feature as the tovoicemail.pl script converts the wav to stereo panning the legs of the call to the left and right. You should update the tovoicemail.pl script to convert the wav file to mono if you plan to listen to them from asterisk itself. I have not tried, but perhaps commenting the first two sox calls in the script will work (lines 69 and 70).

    Best regards,

or Sign Up to reply!