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:
parent
b919848425
commit
87f722e59d
|
|
@ -147,6 +147,7 @@
|
||||||
|
|
||||||
//get the call center settings
|
//get the call center settings
|
||||||
$retry_limit = $setting->get('email_queue', 'retry_limit');
|
$retry_limit = $setting->get('email_queue', 'retry_limit');
|
||||||
|
$transcribe_enabled = $setting->get('voicemail', 'transcribe_enabled');
|
||||||
|
|
||||||
//set defaults
|
//set defaults
|
||||||
if (empty($email_retry_count)) {
|
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
|
//transcribe the attachment
|
||||||
require $_SERVER['DOCUMENT_ROOT']."/app/email_queue/resources/functions/transcribe.php";
|
require $_SERVER['DOCUMENT_ROOT']."/app/email_queue/resources/functions/transcribe.php";
|
||||||
if ($email_attachment_type == 'wav' || $email_attachment_type == 'mp3') {
|
if ($email_attachment_type == 'wav' || $email_attachment_type == 'mp3') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue