mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add per-voicemail transcription enabled. (#2370)
This commit is contained in:
@@ -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