Asterisk can't play recorded .wav files
-
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 failedI can play the .wav file with a media player after transferring it out of the Asterisk server.
-
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,
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login