diff --git a/app/call_recordings/app_config.php b/app/call_recordings/app_config.php index c53ce30f5c..2043ed16f5 100644 --- a/app/call_recordings/app_config.php +++ b/app/call_recordings/app_config.php @@ -70,7 +70,15 @@ $apps[$x]['default_settings'][$y]['default_setting_name'] = "boolean"; $apps[$x]['default_settings'][$y]['default_setting_value'] = "true"; $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; - $apps[$x]['default_settings'][$y]['default_setting_description'] = "Call recordings set to auto transcribe. Options: true, false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Call recordings enable transcribe. Options: true, false"; + $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "3a5e8a81-f356-4824-92df-69f6a0da17dc"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "call_recordings"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "summary_enabled"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "boolean"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "true"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Call recordings enable call summary. Options: true, false"; $y++; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "2bbdb343-4e95-4d9b-886a-33bc5918a4c0"; $apps[$x]['default_settings'][$y]['default_setting_category'] = "call_recordings"; diff --git a/app/call_recordings/resources/classes/call_recordings.php b/app/call_recordings/resources/classes/call_recordings.php index e79ac3acef..9c5facfd74 100644 --- a/app/call_recordings/resources/classes/call_recordings.php +++ b/app/call_recordings/resources/classes/call_recordings.php @@ -221,7 +221,7 @@ class call_recordings { $call_summary = ''; //summarize the transcript - if ($settings->get('language_model', 'enabled') && !empty($params['transcribe_message'])) { + if ($settings->get('language_model', 'enabled') && $settings->get('call_recordings', 'summary_enabled') && !empty($params['transcribe_message'])) { //get the transcribed text $transcribe_text = transcribe::conversation_format($params['transcribe_message'], 'text');