Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: gery 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
-
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
-
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
-
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?
-
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
-
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.
-
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
-
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 ?
-
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
-
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
-
Hi All,
Sorry to revive this post but is it possible to just change the "From" field, currently it says: "Asterisk PBX" <admin@yoursite.com>
If it is possible could you point me in the right direction.
Regards,
Del