Koozali.org: home of the SME Server

SAIL (Asterisk) Voicemail Issues

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
SAIL (Asterisk) Voicemail Issues
« 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}

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL (Asterisk) Voicemail Issues
« Reply #1 on: March 04, 2008, 12:14:31 AM »
damn!,

I thought we'd fixed this ages ago.

I'm on it.

Best

S

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL (Asterisk) Voicemail Issues
« Reply #2 on: March 04, 2008, 08:30:50 AM »
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

Code: [Select]
callerid="Nick Jones" <3000>

would render as

Code: [Select]
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...

Code: [Select]
[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

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
Re: SAIL (Asterisk) Voicemail Issues
« Reply #3 on: March 04, 2008, 07:03:40 PM »
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