You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/voicemail
Raphael Coeffic 6434bc25da
corrected compilation errors introduced in the last version.
20 years ago
..
etc initial checkin new open source version. 20 years ago
wav initial checkin new open source version. 20 years ago
AnswerMachine.cpp corrected compilation errors introduced in the last version. 20 years ago
AnswerMachine.h corrected compilation errors introduced in the last version. 20 years ago
Makefile initial checkin new open source version. 20 years ago
README.mail-template initial checkin new open source version. 20 years ago
default.template reverted to the previous version and suppressed a space in the 'from:' line. This is necessary to work with 20 years ago
default.template.sample initial checkin new open source version. 20 years ago

README.mail-template

*****************************
* Voicemail email templates *
*****************************

Email templates will help you to customize the emails
sended by Voicemail. Just configure the path where the 
templates can be found and edit your template files.
You will find detailed informations in the following 
sections.


Configuration parameters within voicemail section:
--------------------------------------------------

email_template_path: 

	- sets the directory which will be searched for
	  email template files (*.template).

	- each template file stands for a different domain:
	    <domain>.template
	    Ex: iptel.org.template

	- additionaly, a default template must be present in
	  the directory configured with that configuration
	  parameter. It must be named 'default.template'.

If you configured email_template_path well and turned debug informations
on, you should find in the log file during loading process following lines:

(9834) DEBUG: loadEmailTemplates (AnswerMachine.cpp:102): loading plug-in/voicemail/default.template ...
(9834) DEBUG: loadEmailTemplates (AnswerMachine.cpp:102): loading plug-in/voicemail/iptel.org.template ...
(9834) DEBUG: loadEmailTemplates (AnswerMachine.cpp:102): loading plug-in/voicemail/susie.at.template ...



Email template format:
----------------------

to: <destination email address>
from: <source email address>
subject: <subject line>
[empty line]
<body>

Variables:
----------

If you want to customize the email depending on call datas, 
please use folowing syntax: %variable%

Following variables are supported:

 - %to% : local URI.
 - %domain% : local domain.
 - %user% : local user.
 - %email% : email address of the local user.

 - %from% : remote URI.
 - %from_user% : remote user.
 - %from_domain% : remote domain.