mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-06 00:28:45 +00:00
Add per-voicemail transcription enabled. (#2370)
This commit is contained in:
@@ -66,6 +66,10 @@
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "voicemail_sms_edit";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "voicemail_transcription_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
|
||||
//default settings
|
||||
$y = 0;
|
||||
@@ -167,6 +171,10 @@
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the sms did to send voicemail to.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_transcription_enabled";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "If voicemail transcription is enabled for this user";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "voicemail_attach_file";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Choose whether to attach the file to the email.";
|
||||
|
||||
@@ -157,6 +157,17 @@ $text['label-voicemail_sms_to']['uk'] = "SMS-повідомлення на";
|
||||
$text['label-voicemail_sms_to']['de-at'] = "SMS an";
|
||||
$text['label-voicemail_sms_to']['he'] = "";
|
||||
|
||||
$text['label-voicemail_transcription_enabled']['en-us'] = "Transcription Enabled";
|
||||
$text['label-voicemail_transcription_enabled']['es-cl'] = "";
|
||||
$text['label-voicemail_transcription_enabled']['pt-pt'] = "";
|
||||
$text['label-voicemail_transcription_enabled']['fr-fr'] = "";
|
||||
$text['label-voicemail_transcription_enabled']['pt-br'] = "";
|
||||
$text['label-voicemail_transcription_enabled']['pl'] = "";
|
||||
$text['label-voicemail_transcription_enabled']['sv-se'] = "";
|
||||
$text['label-voicemail_transcription_enabled']['uk'] = "";
|
||||
$text['label-voicemail_transcription_enabled']['de-at'] = "";
|
||||
$text['label-voicemail_transcription_enabled']['he'] = "";
|
||||
|
||||
$text['label-voicemail_mail_to']['en-us'] = "Mail To";
|
||||
$text['label-voicemail_mail_to']['es-cl'] = "Correo a";
|
||||
$text['label-voicemail_mail_to']['pt-pt'] = "Email Para";
|
||||
@@ -522,6 +533,17 @@ $text['description-voicemail_sms_to']['uk'] = "Введіть номер SMS в
|
||||
$text['description-voicemail_sms_to']['de-at'] = "Geben Sie die SMS-Nummer um Voicemail Benachrichtigung zu senden.";
|
||||
$text['description-voicemail_sms_to']['he'] = "הזן את מספר ה-SMS לשלוח הודעת תא קולי.";
|
||||
|
||||
$text['description-voicemail_transcription_enabled']['en-us'] = "Choose if voicemail transcription is enabled for this extension ";
|
||||
$text['description-voicemail_transcription_enabled']['es-cl'] = "";
|
||||
$text['description-voicemail_transcription_enabled']['pt-pt'] = "";
|
||||
$text['description-voicemail_transcription_enabled']['fr-fr'] = "";
|
||||
$text['description-voicemail_transcription_enabled']['pt-br'] = "";
|
||||
$text['description-voicemail_transcription_enabled']['pl'] = "";
|
||||
$text['description-voicemail_transcription_enabled']['sv-se'] = "";
|
||||
$text['description-voicemail_transcription_enabled']['uk'] = "";
|
||||
$text['description-voicemail_transcription_enabled']['de-at'] = "";
|
||||
$text['description-voicemail_transcription_enabled']['he'] = "";
|
||||
|
||||
$text['description-voicemail_message']['en-us'] = "A list of recorded voice messages which shows when the message was created, caller ID information, length, file size and download or delete the message.";
|
||||
$text['description-voicemail_message']['es-cl'] = "Un listado de grabaciones de mensajes de voz que muestran la fecha de creación, información del Caller ID, duración, tamaño del archivo y permite descargar o eliminar el archivo";
|
||||
$text['description-voicemail_message']['pt-pt'] = "Uma lista de mensagens gravadas que mostra quando uma mensagem foi criada, o ID do chamador, a duração, o tamanho do ficheiro e opção de descarregar ou remover a mensagem.";
|
||||
|
||||
@@ -59,6 +59,7 @@ else {
|
||||
$voicemail_alternate_greet_id = check_str($_POST["voicemail_alternate_greet_id"]);
|
||||
$voicemail_mail_to = check_str($_POST["voicemail_mail_to"]);
|
||||
$voicemail_sms_to = check_str($_POST["voicemail_sms_to"]);
|
||||
$voicemail_transcription_enabled = check_str($_POST["voicemail_transcription_enabled"]);
|
||||
$voicemail_file = check_str($_POST["voicemail_file"]);
|
||||
$voicemail_local_after_email = check_str($_POST["voicemail_local_after_email"]);
|
||||
$voicemail_enabled = check_str($_POST["voicemail_enabled"]);
|
||||
@@ -147,6 +148,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$sql .= "voicemail_alternate_greet_id, ";
|
||||
$sql .= "voicemail_mail_to, ";
|
||||
$sql .= "voicemail_sms_to, ";
|
||||
$sql .= "voicemail_transcription_enabled, ";
|
||||
$sql .= "voicemail_file, ";
|
||||
$sql .= "voicemail_local_after_email, ";
|
||||
$sql .= "voicemail_enabled, ";
|
||||
@@ -162,6 +164,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$sql .= (($voicemail_alternate_greet_id != '') ? "'".$voicemail_alternate_greet_id."'" : 'null').", ";
|
||||
$sql .= "'".$voicemail_mail_to."', ";
|
||||
$sql .= "'".$voicemail_sms_to."', ";
|
||||
$sql .= "'".$voicemail_transcription_enabled."', ";
|
||||
$sql .= "'".$voicemail_file."', ";
|
||||
$sql .= "'".$voicemail_local_after_email."', ";
|
||||
$sql .= "'".$voicemail_enabled."', ";
|
||||
@@ -181,6 +184,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$sql .= "voicemail_alternate_greet_id = ".(($voicemail_alternate_greet_id != '') ? "'".$voicemail_alternate_greet_id."'" : 'null').", ";
|
||||
$sql .= "voicemail_mail_to = '".$voicemail_mail_to."', ";
|
||||
$sql .= "voicemail_sms_to = '".$voicemail_sms_to."', ";
|
||||
$sql .= "voicemail_transcription_enabled = '".$voicemail_transcription_enabled."', ";
|
||||
$sql .= "voicemail_file = '".$voicemail_file."', ";
|
||||
$sql .= "voicemail_local_after_email = '".$voicemail_local_after_email."', ";
|
||||
$sql .= "voicemail_enabled = '".$voicemail_enabled."', ";
|
||||
@@ -267,6 +271,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$voicemail_alternate_greet_id = $row["voicemail_alternate_greet_id"];
|
||||
$voicemail_mail_to = $row["voicemail_mail_to"];
|
||||
$voicemail_sms_to = $row["voicemail_sms_to"];
|
||||
$voicemail_transcription_enabled = $row["voicemail_transcription_enabled"];
|
||||
$voicemail_file = $row["voicemail_file"];
|
||||
$voicemail_local_after_email = $row["voicemail_local_after_email"];
|
||||
$voicemail_enabled = $row["voicemail_enabled"];
|
||||
@@ -490,6 +495,21 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
if(permission_exists('voicemail_transcription_edit') && $_SESSION['voicemail']['transcribe_enabled']['boolean'] == "true") {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-voicemail_transcription_enabled']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='voicemail_transcription_enabled' id='voicemail_transcription_enabled'>\n";
|
||||
echo " <option value='true' ".(($voicemail_transcription_enabled == "true") ? "selected='selected'" : null).">".$text['label-true']."</option>\n";
|
||||
echo " <option value='false' ".(($voicemail_transcription_enabled == "false") ? "selected='selected'" : null).">".$text['label-false']."</option>\n";
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-voicemail_transcription_enabled']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
|
||||
Reference in New Issue
Block a user