Hi
I’m having trouble configure voicemail to send emails.
I have Asterisk 1.6 running on a Synology ds108j. I’ve installed nail to be able to send emails under my gmail credentials.
Basically, I can get Asterisk to send an email, but with the following observations:
- Only wav49 format works. If I set format=wav, I get errors such as ‘Can’t find format wav’
- I don’t seem able to override the default ‘messagebody’. The email that is sent always comes through with some default message “Just wanted to let you know you were just left a 0:04 long message …”
- The ‘wav’ attachment isn’t coming through as an attachment, but instead arrives as some ‘MIME mulitpart’ nonsense:
------voicemail_1200025152611019739
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Dear CiscoFon:
Just wanted to let you know you were just left a 0:04 long message (number 1)
in mailbox 2000 from xxx, on Wednesday, April 18, 2012 at 07:29:20 AM so you might
want to check it when you get a chance. Thanks!
--Asterisk
------voicemail_1200025152611019739
Content-Type: audio/x-WAV; name="msg0000.WAV"
Content-Transfer-Encoding: base64
Content-Description: Voicemail sound attachment.
Content-Disposition: attachment; filename=“msg0000.WAV”
UklGRt0aAABXQVZFZm10IBQAAAAxAAEAQB8AAFkGAABBAAAAAgBAAWZhY3QEAAAAQIMAAGRh
dGGpGgAAHindnYQiYNs0cuPYC2Acx3HbRiSAG7mN20QHYNRGjhv3kbNhTi0ENpYix5UrALhx
48qRXwS4TRzJkekGNpKjNm4eKdfVZAxgI8lS5CYjYCJJjh0JS4DbOG4UxwyAmzZt3Padc2Gt
MgLYkRw3cr4CNrIcR5LkAlhuIjeOuAI6ciNXjp8p19EULmDjRq5ciy1gnThyY9tEgCNHkht1
JWDkyLIk65VSHU3wBNiR27hxwQK0cZpIkuMAxo0cR3LABlaS5Thy3zjjlQILgOO2beQGTYAb
OU4bmURAGymSHEkkgCS5kdzqjXLdDXYESJbaOJIxAraNJEeO3QS2beRKcnMCJpLcyG3eGdfV
xAOA5LaR5QgGYCRHjhyZS4Act2ncVi9gY7mRXOeNMR2NPATKkeVYjncCtnWjuGnWBraR48iR
9QC0kmTJll4Z182Ga4BkR5Lk5g5g4zhtGzlPYNvGUSSJJIAkSY7l6JkR3UlmACZOI8eNtAKo
jdy2beAAOHIjx5FsAMayZEeOHhnZ0UYHQBu3beSmLmAjuW0bxy6ApEht24YjYCNHduPoiZPh
TFACNo4luW3EAkaS3EZy1wTIjeW2cqwENnJdx5GeGZ+ZIAtg5UiSJJksgCM7kuWmImDkyG3c
Vk9gJElu2+aVsRkprQQ2cuRIbkACto0jJW4xAqZtG0mOVwTGcSvJkZ4o09mkZoAlR47kaCyA
27ZxIwktYONYkiNlS6AcyW1kiY6zIUo6BDhO4yZp7wK4aa24krwASIosuXLcAMrSIseKaIlZ
etc.etc.
My voicemail.conf file is along the lines of:
[general]
format=wav49
attach=yes
messagebody=Test
…
Any assistance will be much appreciated, I’ve been battling with this for hours!
Thanks
Paul