Normalmente cuando una extensión tiene habilitado el correo de voz, al recibir un mensaje de voz éste es enviado por la Central Telefónica 3CX a la dirección de correo electrónico configurada para nuestra extensión.
Por defecto el texto de ese mensaje de correo electrónico está en inglés, pero es posible modificarlo fácilmente a través de las plantillas provistas.
Accediendo a la plantilla
Para modificar la plantilla abra la consola de administración de 3CX, vaya a “Opciones” y luego “Provisionando plantillas”. En el tipo de plantilla seleccione “Voicemail” y automáticamente se seleccionará la plantilla de nombre “VMNTemplate.xml”.
El contenido por defecto de esta plantilla es el siguiente:
<?xml version=”1.0″ encoding=”utf-8″?>
<template>
<!–
===================================================================================
All variables must appear in the template text as separate word prepended and appended by %%
Caller attributes:
%%CALLER%% – Caller ID
%%CALLERNAME%% – Caller Name
Voice mail box attributes:
%%EXTNUMBER%% – voice mail box of this extension has received voicemail
%%EXTFIRSTNAME%% – first name of extension
%%EXTLASTNAME%% – last name of extension
Voice mail attributes:
%%DURATION%% – duration of the message in form hh:mm:ss
%%FILENAME%% – a name of the audio file in voice mail box folder
%%DATETIME%% – received at. “short” system default appearance (date and time).
%%DATE%% – received at. “short” system default appearance (date only).
%%TIME%% – received at. “short” system default appearance (time only).
%%DATETIME:[…]%% – received at. Allows to format “received at” using custom format string specified by […]
Detailed description of format string can be found in .NET documentation.
See examples in commented part of the <body> tag
tags:
<from_display_name> – “from” display name of email notification (empty if not specified)
<subject> – subject of nottification email (can be empty) (empty if not specified)
<body> – text of notification email (empty if not specified)
====================================================================================
–>
<from_display_name>
%%CALLER%%
</from_display_name>
<subject>
New Voicemail from %%CALLER%% – %%CALLERNAME%%
</subject>
<body>
You have received a new voicemail from %%CALLER%% – %%CALLERNAME%%
From Caller ID %%CALLER%%
To voicemail box %%EXTNUMBER%% – %%EXTFIRSTNAME%% %%EXTLASTNAME%%
Received %%DATETIME%%
Duration %%DURATION%%
File %%FILENAME%%
<!– (for debugging) Uncomment this part to see all variables and their appearance in email notifications
===========================================================
VARIABLES:
caller ID:
name: "CALLER"
value: %%CALLER%%
Caller name:
name: "CALLERNAME"
value: %%CALLERNAME%%
Date time (system default):
name: "DATETIME"
value: %%DATETIME%%
Date time (system default):
name: "DATETIME:"
value: %%DATETIME:%%
Date (system default):
name: "DATE"
value: %%DATE%%
Time (system default):
name: "TIME"
value: %%TIME%%
Voice mail duration:
name: "DURATION"
value: %%DURATION%%
Extension number (voice mail box):
name: "EXTNUMBER"
value: %%EXTNUMBER%%
Extension user FIRST name (voice mail box):
name: "EXTFIRSTNAME"
value: %%EXTFIRSTNAME%%
Extension user LAST name (voice mail box):
name: "EXTLASTNAME"
value: %%EXTLASTNAME%%
Voice mail file name:
name: "FILENAME"
value: %%FILENAME%%
Formatted date/time:
name: "DATETIME:yyyy/MM/dd hh:mm:ss"
value: %%DATETIME:yyyy/MM/dd hh:mm:ss%%
–>
</body>
</template>
Como se observa en la primera parte de la plantilla, existen variables que podemos utilizar para armar el mensaje como queramos. Estas variables serán reemplazadas por los valores correctos antes de enviar el correo electrónico. Luego tenemos las distintas partes del mensaje, como el asunto y el cuerpo del mensaje de correo electrónico.
Modificando el asunto del correo electrónico
El asunto de los mensajes de correo electrónico conteniendo correos de voz es el que se indica en la siguiente parte de la plantilla:
<subject>
New Voicemail from %%CALLER%% – %%CALLERNAME%%
</subject>
Podríamos modificarlo de la siguiente manera:
<subject>
Nuevo Correo de Voz desde %%CALLER%% – %%CALLERNAME%%
</subject>
También podríamos hacer uso de otras variables disponibles. Por ejemplo, si quisiéramos que el asunto muestre la duración del correo de voz, podríamos hacerlo de la siguiente forma:
<subject>
Nuevo Correo de Voz desde %%CALLER%% – %%CALLERNAME%% (Duración %%DURATION%%)
</subject>
Modificando el cuerpo del correo electrónico
El cuerpo del mensaje de correo electrónico es el que se indica en la sección <body>, por ejemplo removiendo los comentarios:
<body>
You have received a new voicemail from %%CALLER%% – %%CALLERNAME%%
From Caller ID %%CALLER%%
To voicemail box %%EXTNUMBER%% – %%EXTFIRSTNAME%% %%EXTLASTNAME%%
Received %%DATETIME%%
Duration %%DURATION%%
File %%FILENAME%%
</body>
Esto podríamos modificarlo de la siguiente forma:
<body>
Has recibido un nuevo correo de voz desde %%CALLER%% – %%CALLERNAME%%
ID del llamante: %%CALLER%%
Casilla de correo de voz de destino: %%EXTNUMBER%% – %%EXTFIRSTNAME%% %%EXTLASTNAME%%
Fecha y hora de recepción: %%DATETIME%%
Duración: %%DURATION%%
Archivo: %%FILENAME%%
</body>
Guardando los cambios
Luego de haber modificado la plantilla solo es necesario presionar el botón OK para guardar los cambios. Ahora los correos electrónicos de notificación de correo de voz contendrán el texto especificado.




