mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user