Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: sonoracomm on March 03, 2008, 08:33:30 PM
-
I had read that Asterisk 1.4 would include a new setting to normalize th volume of voicemail e-mail attachments. Well, I now have 1.4 installed and I revisited this issue.
This volume gain setting in the voicemail.conf headers works well for me:
volgain=6.0
I also found that I am still unable to do any serious modification of the notification e-mail body section.
If I use the "\n" symbol, SAIL converts them to actual carriage returns in the voicemail.conf file and this does not work for Asterisk. I think this is a long-existing bug (or limitation) of SAIL.
If I manually edit the /etc/voicemail.conf file, it all works as expected...until the next time that file is rebuilt from templates by the system.
If anyone has any recommendations I could try, please let me know.
Thanks,
G
Example:
SAIL converts this (one long line):
emailbody=New voice message:\n\nTo: ${VM_NAME}\nDuration: ${VM_DUR}\nMsg Number: ${VM_MSGNUM}\nMailbox: ${VM_MAILBOX}\nFrom: ${VM_CALLERID}\nDate/Time: ${VM_DATE}
to this:
emailbody=New voice message:
To: ${VM_NAME}
Duration: ${VM_DUR}
Msg Number: ${VM_MSGNUM}
Mailbox: ${VM_MAILBOX}
From: ${VM_CALLERID}
Date: ${VM_DATE}
-
damn!,
I thought we'd fixed this ages ago.
I'm on it.
Best
S
-
Hi Soprom,
Had a look at this. The original fault was that the parser would pick up whitespace as a carriage return; so, for example the tuple
callerid="Nick Jones" <3000>
would render as
callerid="Nick
jones" <3000>
I just checked and this has been fixed. However, the emailbody tuple introduces a new constraint because it has "\n" constructs to signify a cr in the message body. This breaks the parser, as you have shown and it isn't particularly easy to fix (although we will take a look at it).
In the meantime, the easiest and quickest way to get you back on the highway is to use #include to solve your immediate problem.
Create a subdirectory in /etc/asterisk (voip-info recommend you use the name /exts). Create a file in exts called emailbody and put your emailbody statement into it...
mkdir /etc/asterisk/exts
echo 'emailbody=New voice message:\n\nTo: ${VM_NAME}\nDuration: ${VM_DUR}\nMsg Number: ${VM_MSGNUM}\nMailbox: ${VM_MAILBOX}\nFrom: ${VM_CALLERID}\nDate/Time: ${VM_DATE}' > /etc/asterisk/exts/emailbody
Now include it into your voicemail.conf...
[general]
format=wav
serveremail=admin@yoursite.com
attach=yes
maxmessage=300
maxgreet=30
minmessage=8
maxsilence=6
operator=yes
#include /exts/emailbody
This should get you away and running.
Kind Regards
S
-
Thanks very much! I didn't know you could do that...
That worked great after a minor change. I had to take out the leading slash from the path to the included file in order to make it a relative reference:
#include exts/emailbody
Thanks again!
G