Asterisk provides a voicemail program called Asterisk Mail. Using etc/asterisk/voicemail.conf
, we can configure global options for our voicemail system as well as define different voicemail boxes.
In the configuration file, we first have our general options:
[general]
The first setting we get to decide on is how to write the voice files as they are recorded. The default is usually fine:
format=wav49|gsm|wav
Formats that don't match the codec of the call will require transcoding and all applicable licenses. For a system designer looking to minimize transcoding, making sure the voicemail will record in the applicable formats that are allowed for the calls will be beneficial.
Next, we get to set up email notification. Asterisk mail will allow us to notify users of new messages through email, and optionally, we can attach the voice files directly to the message. This is the reason we select wav49
as the format in the previous code, as most computers will be able to play the files. We...