This guide will explain how to configure Asterisk PBX to send voicemail as email with messages as mp3 attachement.
If, like me, you are using an Asterisk server, you may be using the voicemail by email functionnality. It allows your Asterisk PABX to send your by email all the messages received in your voicemail.
Just imagine :
- someone is calling you on your landline
- he is leaving a message on your answering machine
- after few seconds, you are receiving a mail on your android or i-phone with the message as an attachment
You can call back immediatly or even forward the email for someone else to deal with that call !
One of the main drawback of that functionnality is that Asterisk can generate attachments using only the standard telephony codecs (wav49, gsm, wav). The wav format is widely recognised, but it is quite uncompressed. The wav49 or gsm formats are better in terms of compression, but sadly they are not recognised by all the devices able to deal with your emails.
So why not to use mp3 format for the voicemail attachments ?
This is what this guide is all about. It will explain how to catch the emails sent by Asterisk and convert the audio attachment from a wav file to a mp3 file.