E-mail voicemails using alternative client

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

E-mail voicemails using alternative client

Postby pjb01 » Thu Mar 08, 2007 9:57 pm


I have successfully set up Asterisk 1.4.1 with voicemail, and the system is running well.

Right now I have the following in voicemail.conf:

mailcmd=/usr/local/bin/sendEmail -f asterisk@xyz.com -t recipient@xyz.com -u "Subject Line Here"

E-mails are sent when voicemails are received, but the attachment is sent as an inline base64 encode as follows:

Content-Type: audio/x-WAV; name="msg0005.WAV"
Content-Transfer-Encoding: base64
Content-Description: Voicemail sound attachment.
Content-Disposition: attachment; filename="msg0005.WAV"


Extracting and decoding this is a pain.

Is there any way to extract the full path of the recorded message for use in the mailcmd line above (with the -a 'attachment' option)? Either that, or pass the full path to an external script?

Posts: 3
Joined: Sat Mar 03, 2007 2:11 pm

Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest