check if transcribe_enabled is enabled

We are checking this already on the voicemail. This checks the setting for transcribe_enabled in default and domain settings.
This commit is contained in:
FusionPBX 2023-12-11 12:21:15 -07:00 committed by GitHub
parent b919848425
commit 87f722e59d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -147,6 +147,7 @@
//get the call center settings
$retry_limit = $setting->get('email_queue', 'retry_limit');
$transcribe_enabled = $setting->get('voicemail', 'transcribe_enabled');
//set defaults
if (empty($email_retry_count)) {
@ -220,7 +221,7 @@
}
}
if (isset($voicemail_transcription_enabled) && $voicemail_transcription_enabled === 'true') {
if (isset($transcribe_enabled) && $transcribe_enabled === 'true' && isset($voicemail_transcription_enabled) && $voicemail_transcription_enabled === 'true') {
//transcribe the attachment
require $_SERVER['DOCUMENT_ROOT']."/app/email_queue/resources/functions/transcribe.php";
if ($email_attachment_type == 'wav' || $email_attachment_type == 'mp3') {