diff --git a/app/extensions/app_languages.php b/app/extensions/app_languages.php
index a08b80632c..6d96c1d632 100644
--- a/app/extensions/app_languages.php
+++ b/app/extensions/app_languages.php
@@ -90,15 +90,15 @@
$text['description-user_list']['pt-pt'] = "Atribuir os utilizadores que estão associados a esta extensão.";
$text['description-user_list']['fr-fr'] = "Assigner cette extension aux utilisateur.";
- $text['label-vm_password']['en-us'] = "Voicemail Password";
- $text['label-vm_password']['es-cl'] = "Contraseña de correo de voz";
- $text['label-vm_password']['pt-pt'] = "Password do Correio de Voz";
- $text['label-vm_password']['fr-fr'] = "Mot de passe de la messagerie vocale";
+ $text['label-voicemail_password']['en-us'] = "Voicemail Password";
+ $text['label-voicemail_password']['es-cl'] = "Contraseña de correo de voz";
+ $text['label-voicemail_password']['pt-pt'] = "Password do Correio de Voz";
+ $text['label-voicemail_password']['fr-fr'] = "Mot de passe de la messagerie vocale";
- $text['description-vm_password']['en-us'] = "Enter the numeric voicemail password here.";
- $text['description-vm_password']['es-cl'] = "Ingrese la contraseña numérica para el correo de voz aquí.";
- $text['description-vm_password']['pt-pt'] = "Introduza uma password numérica para o correio de voz aqui.";
- $text['description-vm_password']['fr-fr'] = "Insérer un mot de passe numérique pour la messagerie vocale.";
+ $text['description-voicemail_password']['en-us'] = "Enter the numeric voicemail password here.";
+ $text['description-voicemail_password']['es-cl'] = "Ingrese la contraseña numérica para el correo de voz aquí.";
+ $text['description-voicemail_password']['pt-pt'] = "Introduza uma password numérica para o correio de voz aqui.";
+ $text['description-voicemail_password']['fr-fr'] = "Insérer un mot de passe numérique pour la messagerie vocale.";
$text['label-accountcode']['en-us'] = "Account Code";
$text['label-accountcode']['es-cl'] = "Código de Cuenta";
@@ -252,45 +252,45 @@
$text['label-device_template']['pt-pt'] = "Template";
$text['label-device_template']['fr-fr'] = "Template";
- $text['label-vm_enabled']['en-us'] = "Voicemail Enabled";
- $text['label-vm_enabled']['es-cl'] = "Correo de Voz Activado";
- $text['label-vm_enabled']['pt-pt'] = "Correio de Voz Habilitado";
- $text['label-vm_enabled']['fr-fr'] = "Messagerie Vocale Active";
+ $text['label-voicemail_enabled']['en-us'] = "Voicemail Enabled";
+ $text['label-voicemail_enabled']['es-cl'] = "Correo de Voz Activado";
+ $text['label-voicemail_enabled']['pt-pt'] = "Correio de Voz Habilitado";
+ $text['label-voicemail_enabled']['fr-fr'] = "Messagerie Vocale Active";
- $text['description-vm_enabled']['en-us'] = "Enable/disable voicemail for this extension.";
- $text['description-vm_enabled']['es-cl'] = "Activar/desactivar el correo de voz para esta extensión.";
- $text['description-vm_enabled']['pt-pt'] = "Habilitar/Desabilitar o correio de voz para esta extensão.";
- $text['description-vm_enabled']['fr-fr'] = "Messagerie Vocale disponible ou non pour cette extension.";
+ $text['description-voicemail_enabled']['en-us'] = "Enable/disable voicemail for this extension.";
+ $text['description-voicemail_enabled']['es-cl'] = "Activar/desactivar el correo de voz para esta extensión.";
+ $text['description-voicemail_enabled']['pt-pt'] = "Habilitar/Desabilitar o correio de voz para esta extensão.";
+ $text['description-voicemail_enabled']['fr-fr'] = "Messagerie Vocale disponible ou non pour cette extension.";
- $text['label-vm_mailto']['en-us'] = "Voicemail Mail To";
- $text['label-vm_mailto']['es-cl'] = "Enviar correo de voz a";
- $text['label-vm_mailto']['pt-pt'] = "Enviar correio de voz para";
- $text['label-vm_mailto']['fr-fr'] = "Courriel destination";
+ $text['label-voicemail_mail_to']['en-us'] = "Voicemail Mail To";
+ $text['label-voicemail_mail_to']['es-cl'] = "Enviar correo de voz a";
+ $text['label-voicemail_mail_to']['pt-pt'] = "Enviar correio de voz para";
+ $text['label-voicemail_mail_to']['fr-fr'] = "Courriel destination";
- $text['description-vm_mailto']['en-us'] = "Enter the email address to send voicemail to (optional).";
- $text['description-vm_mailto']['es-cl'] = "Ingrese una dirección de correo electrónico para enviar el correo de voz (opcional).";
- $text['description-vm_mailto']['pt-pt'] = "Introduza o endereço de email para enviar o correio de voz (opcional).";
- $text['description-vm_mailto']['fr-fr'] = "Insérer le courriel où sera envoyé le message de notification (optionnel).";
+ $text['description-voicemail_mail_to']['en-us'] = "Enter the email address to send voicemail to (optional).";
+ $text['description-voicemail_mail_to']['es-cl'] = "Ingrese una dirección de correo electrónico para enviar el correo de voz (opcional).";
+ $text['description-voicemail_mail_to']['pt-pt'] = "Introduza o endereço de email para enviar o correio de voz (opcional).";
+ $text['description-voicemail_mail_to']['fr-fr'] = "Insérer le courriel où sera envoyé le message de notification (optionnel).";
- $text['label-vm_attach_file']['en-us'] = "Voicemail Attach File";
- $text['label-vm_attach_file']['es-cl'] = "Adjuntar Archivo de Correo de Voz";
- $text['label-vm_attach_file']['pt-pt'] = "Anexar Ficheiro Áudio";
- $text['label-vm_attach_file']['fr-fr'] = "Fichier Audio";
+ $text['label-voicemail_attach_file']['en-us'] = "Voicemail Attach File";
+ $text['label-voicemail_attach_file']['es-cl'] = "Adjuntar Archivo de Correo de Voz";
+ $text['label-voicemail_attach_file']['pt-pt'] = "Anexar Ficheiro Áudio";
+ $text['label-voicemail_attach_file']['fr-fr'] = "Fichier Audio";
- $text['description-vm_attach_file']['en-us'] = "Choose whether to attach the voicemail to the email as an audio file.";
- $text['description-vm_attach_file']['es-cl'] = "Seleccione si desea adjuntar el correo de voz al correo electrónico como un archivo de audio.";
- $text['description-vm_attach_file']['pt-pt'] = "Escolha se deseja anexar o correio de voz ao email como um ficheiro de áudio.";
- $text['description-vm_attach_file']['fr-fr'] = "Choisir si l'enregistrement audio est attaché au courriel.";
+ $text['description-voicemail_attach_file']['en-us'] = "Choose whether to attach the voicemail to the email as an audio file.";
+ $text['description-voicemail_attach_file']['es-cl'] = "Seleccione si desea adjuntar el correo de voz al correo electrónico como un archivo de audio.";
+ $text['description-voicemail_attach_file']['pt-pt'] = "Escolha se deseja anexar o correio de voz ao email como um ficheiro de áudio.";
+ $text['description-voicemail_attach_file']['fr-fr'] = "Choisir si l'enregistrement audio est attaché au courriel.";
- $text['label-vm_keep_local_after_email']['en-us'] = "VM Keep Local After Email";
- $text['label-vm_keep_local_after_email']['es-cl'] = "Mantener Mensaje de Voz despues de enviar por Email";
- $text['label-vm_keep_local_after_email']['pt-pt'] = "Manter mensagem de correio de voz depois de enviado o email";
- $text['label-vm_keep_local_after_email']['fr-fr'] = "Message gardé en local après courriel";
+ $text['label-voicemail_local_after_email']['en-us'] = "VM Keep Local After Email";
+ $text['label-voicemail_local_after_email']['es-cl'] = "Mantener Mensaje de Voz despues de enviar por Email";
+ $text['label-voicemail_local_after_email']['pt-pt'] = "Manter mensagem de correio de voz depois de enviado o email";
+ $text['label-voicemail_local_after_email']['fr-fr'] = "Message gardé en local après courriel";
- $text['description-vm_keep_local_after_email']['en-us'] = "Keep local file after sending the email.";
- $text['description-vm_keep_local_after_email']['es-cl'] = "Mantener el archivo de forma local despues de enviar por correo electrónico.";
- $text['description-vm_keep_local_after_email']['pt-pt'] = "Manter o ficheiro local depois de enviar o email.";
- $text['description-vm_keep_local_after_email']['fr-fr'] = "Conserver ou non le message sur la messagerie vocale après l'envoi du courriel.";
+ $text['description-voicemail_local_after_email']['en-us'] = "Keep local file after sending the email.";
+ $text['description-voicemail_local_after_email']['es-cl'] = "Mantener el archivo de forma local despues de enviar por correo electrónico.";
+ $text['description-voicemail_local_after_email']['pt-pt'] = "Manter o ficheiro local depois de enviar o email.";
+ $text['description-voicemail_local_after_email']['fr-fr'] = "Conserver ou non le message sur la messagerie vocale après l'envoi du courriel.";
$text['label-toll_allow']['en-us'] = "Toll Allow";
$text['label-toll_allow']['es-cl'] = "Permitir Tarifas Especiales";
diff --git a/app/extensions/extension_copy.php b/app/extensions/extension_copy.php
index f7feafcaea..e66e60b980 100644
--- a/app/extensions/extension_copy.php
+++ b/app/extensions/extension_copy.php
@@ -182,30 +182,29 @@ else {
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($result as &$row) {
- $vm_mailto = $row["voicemail_mail_to"];
- $vm_attach_file = $row["voicemail_attach_file"];
- $vm_keep_local_after_email = $row["voicemail_local_after_email"];
- $vm_enabled = $row["voicemail_enabled"];
+ $voicemail_mailto = $row["voicemail_mail_to"];
+ $voicemail_attach_file = $row["voicemail_attach_file"];
+ $voicemail_local_after_email = $row["voicemail_local_after_email"];
+ $voicemail_enabled = $row["voicemail_enabled"];
}
unset ($prep_statement);
//set the new voicemail password
- if (strlen($vm_password) == 0) {
- $vm_password = generate_password(9, 1);
+ if (strlen($voicemail_password) == 0) {
+ $voicemail_password = generate_password(9, 1);
}
//add voicemail via class
- require_once "app/extensions/resources/classes/extension.php";
$ext = new extension;
$ext->db = $db;
$ext->domain_uuid = $domain_uuid;
$ext->extension = $extension_new;
$ext->number_alias = $number_alias_new;
- $ext->vm_password = $vm_password;
- $ext->vm_mailto = $vm_mailto;
- $ext->vm_attach_file = $vm_attach_file;
- $ext->vm_keep_local_after_email = $vm_keep_local_after_email;
- $ext->vm_enabled = $vm_enabled;
+ $ext->voicemail_password = $voicemail_password;
+ $ext->voicemail_mail_to = $voicemail_mailto;
+ $ext->voicemail_attach_file = $voicemail_attach_file;
+ $ext->voicemail_local_after_email = $voicemail_local_after_email;
+ $ext->voicemail_enabled = $voicemail_enabled;
$ext->description = $description;
$ext->voicemail();
unset($ext);
diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php
index 3d048fcfe2..4cee381661 100644
--- a/app/extensions/extension_edit.php
+++ b/app/extensions/extension_edit.php
@@ -68,11 +68,11 @@ else {
$limit_destination = check_str($_POST["limit_destination"]);
$device_uuid = check_str($_POST["device_uuid"]);
$device_line = check_str($_POST["device_line"]);
- $vm_password = check_str($_POST["vm_password"]);
- $vm_enabled = check_str($_POST["vm_enabled"]);
- $vm_mailto = check_str($_POST["vm_mailto"]);
- $vm_attach_file = check_str($_POST["vm_attach_file"]);
- $vm_keep_local_after_email = check_str($_POST["vm_keep_local_after_email"]);
+ $voicemail_password = check_str($_POST["voicemail_password"]);
+ $voicemail_enabled = check_str($_POST["voicemail_enabled"]);
+ $voicemail_mail_to = check_str($_POST["voicemail_mail_to"]);
+ $voicemail_attach_file = check_str($_POST["voicemail_attach_file"]);
+ $voicemail_local_after_email = check_str($_POST["voicemail_local_after_email"]);
$user_context = check_str($_POST["user_context"]);
$range = check_str($_POST["range"]);
$autogen_users = check_str($_POST["autogen_users"]);
@@ -243,7 +243,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//if (strlen($domain_uuid) == 0) { $msg .= $text['message-required']."domain_uuid
\n"; }
if (strlen($extension) == 0) { $msg .= $text['message-required'].$text['label-extension']."
\n"; }
//if (strlen($number_alias) == 0) { $msg .= $text['message-required']."Number Alias
\n"; }
- //if (strlen($vm_password) == 0) { $msg .= $text['message-required']."Voicemail Password
\n"; }
+ //if (strlen($voicemail_password) == 0) { $msg .= $text['message-required']."Voicemail Password
\n"; }
//if (strlen($accountcode) == 0) { $msg .= $text['message-required']."Account Code
\n"; }
//if (strlen($effective_caller_id_name) == 0) { $msg .= $text['message-required']."Effective Caller ID Name
\n"; }
//if (strlen($effective_caller_id_number) == 0) { $msg .= $text['message-required']."Effective Caller ID Number
\n"; }
@@ -256,9 +256,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//if (strlen($directory_exten_visible) == 0) { $msg .= $text['message-required']."Directory Extension Visible
\n"; }
//if (strlen($limit_max) == 0) { $msg .= $text['message-required']."Max Callsr
\n"; }
//if (strlen($limit_destination) == 0) { $msg .= $text['message-required']."Transfer Destination Number
\n"; }
- //if (strlen($vm_mailto) == 0) { $msg .= $text['message-required']."Voicemail Mail To
\n"; }
- //if (strlen($vm_attach_file) == 0) { $msg .= $text['message-required']."Voicemail Attach File
\n"; }
- //if (strlen($vm_keep_local_after_email) == 0) { $msg .= $text['message-required']."VM Keep Local After Email
\n"; }
+ //if (strlen($voicemail_mail_to) == 0) { $msg .= $text['message-required']."Voicemail Mail To
\n"; }
+ //if (strlen($voicemail_attach_file) == 0) { $msg .= $text['message-required']."Voicemail Attach File
\n"; }
+ //if (strlen($voicemail_local_after_email) == 0) { $msg .= $text['message-required']."VM Keep Local After Email
\n"; }
//if (strlen($user_context) == 0) { $msg .= $text['message-required']."User Context
\n"; }
//if (strlen($toll_allow) == 0) { $msg .= $text['message-required']."Toll Allow
\n"; }
//if (strlen($call_group) == 0) { $msg .= $text['message-required']."Call Group
\n"; }
@@ -440,21 +440,20 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//add or update voicemail
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) {
//set the voicemail password
- if (strlen($vm_password) == 0) {
- $vm_password = generate_password(9, 1);
+ if (strlen($voicemail_password) == 0) {
+ $voicemail_password = generate_password(9, 1);
}
//voicemail class
- require_once "app/extensions/resources/classes/extension.php";
$ext = new extension;
$ext->db = $db;
$ext->domain_uuid = $domain_uuid;
$ext->extension = $extension;
$ext->number_alias = $number_alias;
- $ext->vm_password = $vm_password;
- $ext->vm_mailto = $vm_mailto;
- $ext->vm_attach_file = $vm_attach_file;
- $ext->vm_keep_local_after_email = $vm_keep_local_after_email;
- $ext->vm_enabled = $vm_enabled;
+ $ext->voicemail_password = $voicemail_password;
+ $ext->voicemail_mail_to = $voicemail_mailto;
+ $ext->voicemail_attach_file = $voicemail_attach_file;
+ $ext->voicemail_local_after_email = $voicemail_local_after_email;
+ $ext->voicemail_enabled = $voicemail_enabled;
$ext->description = $description;
$ext->voicemail();
unset($ext);
@@ -471,8 +470,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$password = generate_password();
}
//set the voicemail password
- if (strlen($vm_password) == 0) {
- $vm_password = generate_password(9, 1);
+ if (strlen($voicemail_password) == 0) {
+ $voicemail_password = generate_password(9, 1);
}
//update extensions
$sql = "update v_extensions set ";
@@ -546,11 +545,11 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$ext->domain_uuid = $domain_uuid;
$ext->extension = $extension;
$ext->number_alias = $number_alias;
- $ext->vm_password = $vm_password;
- $ext->vm_mailto = $vm_mailto;
- $ext->vm_attach_file = $vm_attach_file;
- $ext->vm_keep_local_after_email = $vm_keep_local_after_email;
- $ext->vm_enabled = $vm_enabled;
+ $ext->voicemail_password = $voicemail_password;
+ $ext->voicemail_mailto = $voicemail_mailto;
+ $ext->voicemail_attach_file = $voicemail_attach_file;
+ $ext->voicemail_local_after_email = $voicemail_local_after_email;
+ $ext->voicemail_enabled = $voicemail_enabled;
$ext->description = $description;
$ext->voicemail();
unset($ext);
@@ -705,18 +704,18 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($result as &$row) {
- $vm_password = $row["voicemail_password"];
+ $voicemail_password = $row["voicemail_password"];
//$greeting_id = $row["greeting_id"];
- $vm_mailto = $row["voicemail_mail_to"];
- $vm_mailto = str_replace(" ", "", $vm_mailto);
- $vm_attach_file = $row["voicemail_attach_file"];
- $vm_keep_local_after_email = $row["voicemail_local_after_email"];
- $vm_enabled = $row["voicemail_enabled"];
+ $voicemail_mail_to = $row["voicemail_mail_to"];
+ $voicemail_mail_to = str_replace(" ", "", $voicemail_mail_to);
+ $voicemail_attach_file = $row["voicemail_attach_file"];
+ $voicemail_local_after_email = $row["voicemail_local_after_email"];
+ $voicemail_enabled = $row["voicemail_enabled"];
}
unset ($prep_statement);
//clean the variables
- $vm_password = str_replace("#", "", $vm_password);
- $vm_mailto = str_replace(" ", "", $vm_mailto);
+ $voicemail_password = str_replace("#", "", $voicemail_password);
+ $voicemail_mail_to = str_replace(" ", "", $voicemail_mail_to);
}
//set the defaults
@@ -935,12 +934,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) {
echo "