Voicemail email template

ktpoitm

Joined
Mar 19, 2010
Messages
9
Likes
0
Points
0
#1
Is there a way to modify the email template that is used when a voicemail is sent? I need to add a special notifyer in either the Subject Line or in the Body. The notifyer will allow my Help Desk system to separate these emails and apply a special template that is only used with the voicemail messages.



Thank you,
 

RustBoy

Joined
Apr 13, 2011
Messages
97
Likes
0
Points
16
#2
from Elastix Without Tears Page 116

20.2 CUSTOMIZING EMAIL NOTIFICATION

Next, if you wish, you will need to customize your email notification message in
/etc/asterisk/vm_email.inc file and to include the actual IP address of your asterisk PC.
I have found that this is best done through a text editor (e.g. Nano) as AMP tends loose
the formatting character. In the later versions of Elastix, this can be done through Tools
File Editor.
Code:
; Change the email body, variables: VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX,
VM_CALLERID, VM_DATE
emailbody=${VM_NAME},\n\nThere is a new voicemail in mailbox
${VM_MAILBOX}:\n\n\tFrom:\t${VM_CALLERID}\n\tLength:\t${VM_DUR}
seconds\n\tDate:\t${VM_DATE}\n\nDial *98 to access your voicemail by phone.\nVisit
http://pbx.myhome.com:8080/cgi-bin/vmail.cgi?action=login&mailbox=${VM_MAILBOX} to
check your voicemail with a web browser.\n
You can be aggressive and change /etc/asterisk/vm_general.inc as well.
; 1st listed format gets emailed
format=wav49|wav
attach=yes
pbxskip=yes ; Don't put [PBX]: in the subject line
serveremail=vm@asterisk ; Who the e-mail notification should appear to come from
fromstring=Voicemail System ; Real name of email sender
maxmessage=180 ; max length of vm message
minmessage=3 ; Minimum length of a voicemail message in seconds
maxsilence=5 ; Wait for 5 silent seconds and end the voicemail
silencethreshold=128 ; What do we consider to be silence
skipms=3000 ; How many millisecs to skip forward/back when rew/ff in message
; playback
review=yes ; Allow sender to review/rerecord their message before saving it
operator=yes ; Allow caller to press 0
nextaftercmd=yes ; Automagically play next message when current message is
Elastix Without Tears Page 117 of 299
; deleted or saved
Change the entries in red to reflect your requirement e.g you may change vm@asterisk to
FHC PBX and change Voice mail System to read Family Health Centre Voicemail.
Once these are done, you will receive email notification of voicemail left in your voicemail
box.
You may start testing it and your email received will look something like this:
From: Family Health Centre Voicemail To: Ben Sharif
Subject: New Message 1 in mailbox 201
Ben Sharif,
There is a new voicemail in mailbox 201:
From: "Mary" <321>
Length: 0:20 seconds
Date: Friday, July 29, 2005 at 11:16:38 PM
Dial *98 to access your voicemail by phone.
Visit http://pbx.familyhealth.com:8080/cgibin/
vmail.cgi?action=login&mailbox=201
to check your voicemail with a web browser.
This thread also has some helpful information:
http://www.eflo.net/VICIDIALforum/viewt ... d3e38f8a7d
 

ktpoitm

Joined
Mar 19, 2010
Messages
9
Likes
0
Points
0
#3
Thank you.
 

RustBoy

Joined
Apr 13, 2011
Messages
97
Likes
0
Points
16
#4
I initially had some trouble getting the formatting to work properly. I was trying to modify the file via the Elastix file editor but it did not save the file correctly. You should edit the file via a terminal.

Code:
nano /etc/asterisk/vm_email.inc
Good luck!
 

maartenvonz

Joined
Jul 21, 2011
Messages
5
Likes
0
Points
0
#5
Thanks for the above advice, however, I am still not able to get it right with version 2.2.0-14.

Each time I edit this file, it changes back to the old file.

I have tried editing it through the file manager, as well as through the command line. The file manager just does not save the changes.

I've tried to change it via the command line, checked that it has been saved by exiting the file & then re-loading it, but as soon as a message is sent, the file defaults back to the original text.

Any ideas?
 

rsenio

Joined
Aug 24, 2012
Messages
27
Likes
0
Points
1
#6
I am having the same issue, I can edit vm_email.inc and it seems to be getting overwritten, back to the default. Help?
 

rsenio

Joined
Aug 24, 2012
Messages
27
Likes
0
Points
1

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,913
Messages
130,917
Members
17,589
Latest member
cristian.saiz
Top