maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Asterisk Voicemail: wav49 codec (https://talk.maemo.org/showthread.php?t=44539)

paulkoan 2010-02-15 08:11

Asterisk Voicemail: wav49 codec
 
Hello,

Asterisk can send its voicemail email attachments in wav, ogg or wav49 formats. Wav49 is compressed and works out of the box on Windows and Linux, which means I can get my email on any workstation I happen to come across without having to install anything.

Maemo 5 doesn't understand wav49, even with the extra codecs pack.

Has anyone else got this working, or have suggestions?

Thanks,

Paul

lma 2010-02-15 10:28

Re: Asterisk Voicemail: wav49 codec
 
Feel free to vote for bug 4252.

paulkoan 2010-02-15 10:43

Re: Asterisk Voicemail: wav49 codec
 
GSM isn't wav49 and GSM doesn't work out of the box with Windows without additional codec installs.

So it doesn't meet my requirement.

lma 2010-02-15 10:56

Re: Asterisk Voicemail: wav49 codec
 
Quote:

Originally Posted by paulkoan (Post 527097)
GSM isn't wav49

No, GSM is a codec while WAV is a container format. However so-called "wav49" is 8KHz GSM under the WAV encapsulation. See also bug 6724 and http://en.wikipedia.org/wiki/Wav.

Quote:

and GSM doesn't work out of the box with Windows without additional codec installs.
No idea what works on Windows, sorry.

pelago 2010-02-16 16:58

Re: Asterisk Voicemail: wav49 codec
 
Can you maybe upload one of those voicemail files that is compressed and works out of the box on Windows, then someone can analyse it to check the codec?

uk-david 2010-03-04 11:04

Re: Asterisk Voicemail: wav49 codec
 
1 Attachment(s)
If you go into the Asterisk voicemail configuration file (/etc/asterisk/voicemail.conf on a regular Asterisk or /opt/asterisk/etc/voicemail.conf if you're running Asterisk on the N900 itself) you will find a line in the [general] section that looks like this:

format=wav49|gsm|wav

Change it to:

format=wav|wav49|gsm

In order to get Asterisk to work with this new configuration, get on to your Asterisk command line and issue the following command:

*CLI> module reload app_voicemail.so

...and you should now find that your voicemail attachments will play on the N900 media player.

One more thing: The first time you do this you may experience continual repetition of the message, as (for whatever reason) the media play comes up in auto-repeat mode (coloured blue when on) - pictured below.

All you need to do is touch the auto-repeat symbol to turn it off (the symbol will go white) and this setting will be remembered for the future.

So now your Asterisk voicemails should playback perfectly!

BTW - these files should also play on desktops (Windows tested successfully) so this appears to be an all-round solution.

lma 2010-03-04 11:33

Re: Asterisk Voicemail: wav49 codec
 
Quote:

Originally Posted by pelago (Post 529953)
Can you maybe upload one of those voicemail files that is compressed and works out of the box on Windows, then someone can analyse it to check the codec?

Sorry, I didn't see your post until now. Did that a while ago, see the aforementioned bug 6724. Note: I have no idea whether that works out of the box in Windows.

Quote:

Originally Posted by uk-david (Post 555304)
format=wav49|gsm|wav

Change it to:

format=wav

When you change the format in voicemail.conf you need to convert pre-existing stored voicemails manually on the server. It would be better to just rearrange the order so what wav comes first (the first format listed is the one used for email notification).

Quote:

...and you should find that your voicemail attachments will play on the N900 media player.
Except now the attachements are huge, which is probably not what you want (if you receive voicemail there's a high chance you're on the road with a slow/expensive GPRS connection).

pelago 2010-03-04 11:33

Re: Asterisk Voicemail: wav49 codec
 
Quote:

Originally Posted by uk-david (Post 555304)
format=wav49|gsm|wav

Change it to:

format=wav

Very useful information. Although it would still be nice if it was possible to make "wav49" work on N900, for those who cannot change the Asterisk config.

paulkoan 2010-03-04 11:50

Re: Asterisk Voicemail: wav49 codec
 
Quote:

Originally Posted by pelago (Post 555335)
Very useful information. Although it would still be nice if it was possible to make "wav49" work on N900, for those who cannot change the Asterisk config.

And for those who can indeed change the asterisk config but do not want voicemail files the size of a building - wav is uncompressed.

uk-david 2010-03-04 12:12

Re: Asterisk Voicemail: wav49 codec
 
Quote:

Originally Posted by lma (Post 555334)
Except now the attachements are huge, which is probably not what you want (if you receive voicemail there's a high chance you're on the road with a slow/expensive GPRS connection).

Agreed Ima - it would be better to have a smaller codec in use.

Maybe (until we get GSM on the N900) a quick change to the out-going voicemail announcement saying "Leave a message, but keep it short!" is in order ;-)


All times are GMT. The time now is 19:47.

vBulletin® Version 3.8.8