Koozali.org: home of the SME Server

SAIL - Customize Voicemail Email Notification

gery

SAIL - Customize Voicemail Email Notification
« on: October 30, 2006, 11:48:15 PM »
Where do I find template for Voicemail Email Notification?:

Dear xxxx:

   Just wanted to let you know you were just left a 0:24 long message (number 1) in mailbox 5000 from xxxxxxxxxx, on Monday, October 30, 2006 at 11:09:39 PM so you might want to check it when you get a chance.  Thanks!

            --Asterisk

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL - Customize Voicemail Email Notification
« Reply #1 on: October 31, 2006, 12:15:09 AM »
Hi Gery

damn good question.

I have no idea, somewhere in etc/asterisk or in var/lib/asterisk at a guess. I'll have a scratch around tomorrow when I can get to a system.

Anyone else know?

Kind Regards

Selintra

Offline hervep

  • ***
  • 70
  • +0/-0
Re: SAIL - Customize Voicemail Email Notification
« Reply #2 on: November 01, 2006, 08:19:36 AM »
Quote from: "gery"
Where do I find template for Voicemail Email Notification?:

Dear xxxx:

   Just wanted to let you know you were just left a 0:24 long message (number 1) in mailbox 5000 from xxxxxxxxxx, on Monday, October 30, 2006 at 11:09:39 PM so you might want to check it when you get a chance.  Thanks!

            --Asterisk


emailbody  into /etc/asterisk/voicemail.conf :

This setting overrides the normal message text seen in the body of a voicemail notification message. It also supports variable substitution which can be used to make the message more meaningful. The format would look like this: emailbody=\n\tHi ${VM_NAME},\n\n\tYou have a ${VM_DUR} long new voicemail message (number ${VM_MSGNUM}) in mailbox ${VM_MAILBOX}\nfrom ${VM_CIDNAME} (${VM_CIDNUM}), on ${VM_DATE}\nso you might want to check it when you get a chance.\n\n
Notice thats a single line without quotes... Use \n \t to do formatting. List of possible variables are below.

Do not forget :

;#------------------------------------------------------------
;# DO NOT MODIFY THIS FILE! It is updated automatically by the
;# SAIL & SME Server software. Instead, modify the source template in
;# an /etc/e-smith/templates-custom directory. For more
;# information, see http://www.e-smith.org/custom/
;#
;# copyright (C) 2005 Selintra Ltd. United Kingdom
;#------------------------------------------------------------

Hope this can help,

Herve

gery

SAIL - Customize Voicemail Email Notification
« Reply #3 on: November 01, 2006, 02:00:46 PM »
Hi Herve

Is it possible to add this line (emailbody=n\tHi ${VM_NAME},\n\n\tYou have a ${VM_DUR} long new voicemail message (number ${VM_MSGNUM}) in mailbox ${VM_MAILBOX}\nfrom ${VM_CIDNAME} (${VM_CIDNUM}), on ${VM_DATE}\nso you might want to check it when you get a chance.\n\n) via Server-Manager?

In the SAIL PBX Panel (Server-Manager) -> "Headers" i find the possibility to modify voicemail.conf.

If this would be a possible solution i would prefer this way.
I am not so familiar with customizing templates.

thanx a lot
gery

P.S.
Is it possible to change the subject of the Voicemail Email Notification?

Offline hervep

  • ***
  • 70
  • +0/-0
SAIL - Customize Voicemail Email Notification
« Reply #4 on: November 01, 2006, 06:53:05 PM »
Quote from: "gery"
Hi Herve

Is it possible to add this line (emailbody=n\tHi ${VM_NAME},\n\n\tYou have a ${VM_DUR} long new voicemail message (number ${VM_MSGNUM}) in mailbox ${VM_MAILBOX}\nfrom ${VM_CIDNAME} (${VM_CIDNUM}), on ${VM_DATE}\nso you might want to check it when you get a chance.\n\n) via Server-Manager?

In the SAIL PBX Panel (Server-Manager) -> "Headers" i find the possibility to modify voicemail.conf.

If this would be a possible solution i would prefer this way.
I am not so familiar with costomizing templates.

thanx a lot
gery

P.S.
Is it possible to change the subject of the Voicemail Email Notification?


Yes, this should be possible. Something like :

[general]
format=wav49
serveremail=youraccount@yourserver
maxmessage=300
maxgreet=30
minmessage=8
maxsilence=6
operator=yes
emailbody=n\tHi ${VM_NAME},\n\n\tYou have a ${VM_DUR} long new voicemail message (number ${VM_MSGNUM}) in mailbox ${VM_MAILBOX}\nfrom ${VM_CIDNAME} (${VM_CIDNUM}), on ${VM_DATE}\nso you might want to check it when you get a chance.\n\n
emailsubject=the subject you want


Other options you may want to change can be found here :
http://voip-info.org/wiki/index.php?page=Asterisk+config+voicemail.conf

Herve

gery

SAIL - Customize Voicemail Email Notification
« Reply #5 on: November 01, 2006, 09:05:14 PM »
When I put the Voicemail Notification Message in one line in SAIL PBX -> Headers -> voicmail.conf I get toubles with the blanks (between the words).

SAIL enters in the "real" voicmail.conf:

maxgreet=30
minmessage=8
maxsilence=6
operator=yes
callback=internal
language=de
emailbody=n\tHi
${VM_NAME},

\tYou
have
a
${VM_DUR}
long
new
voicemail
message
(number
${VM_MSGNUM})
in
mailbox
${VM_MAILBOX}
from
${VM_CIDNAME}
(${VM_CIDNUM}),
on
${VM_DATE}
so
you
might
want
to
check
it
when
you
get
a
chance.

Very strange.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL - Customize Voicemail Email Notification
« Reply #6 on: November 01, 2006, 09:49:11 PM »
Sorry Guys - I didn't see this thread or I would have responded earlier.  Currently, the string processor has a bug in it which doesn't allow blanks (spaces) - it treats them as newline characters, which is why your output is all blown to hell.

We'll have a look at fixing this for you.

Apologies

Selintra

RayG

SAIL - Customize Voicemail Email Notification
« Reply #7 on: November 02, 2006, 02:54:33 AM »
Quote from: "selintra"
Currently, the string processor has a bug in it which doesn't allow blanks (spaces) - it treats them as newline characters


Is this issue also preventing the use of spaces in the caller id data for the extensions ?

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL - Customize Voicemail Email Notification
« Reply #8 on: November 02, 2006, 05:00:28 AM »
Almost certainly

It's the same string handler thoughout the system, we simply never got 'round to fixing it.   Internally and for our customers, we just avoid using spaces.

Now we know that it is an issue we'll put the time in to fix it.

Kind Regards

Selintra

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL - Customize Voicemail Email Notification
« Reply #9 on: November 03, 2006, 10:41:42 PM »
Hi Guys,

re stringhandling issue in headers...

It's fixed in -347 (at least for Headers - I need to check with the developer whether it was also done for all of the other handlers).  

Look out for it on our ftp site early next week.

Kind Regards

Selintra

Offline del

  • *
  • 765
  • +0/-0
Re: SAIL - Customize Voicemail Email Notification
« Reply #10 on: September 26, 2007, 05:02:40 AM »
Hi All,

Sorry to revive this post but is it possible to just change the "From" field, currently it says:
Quote
"Asterisk PBX" <admin@yoursite.com>
If it is possible could you point me in the right direction.

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown