diff --git a/app/extensions/app_config.php b/app/extensions/app_config.php index b7709f355a..e8cd21dfab 100644 --- a/app/extensions/app_config.php +++ b/app/extensions/app_config.php @@ -365,6 +365,14 @@ $apps[$x]['default_settings'][$y]['default_setting_value'] = "0"; $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true"; $apps[$x]['default_settings'][$y]['default_setting_description'] = ""; + $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "db521639-5c26-4cba-acc7-e8d6fe86657c"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "extension"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "call_timeout"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "30"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the ring time (delay in seconds) before sending a call to voicemail"; //cache details $apps[$x]['cache']['key'] = "directory.\${extension}@\${domain_name}"; diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index e172ba368d..9e4fe650b3 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -1068,7 +1068,7 @@ if (empty($accountcode)) { $accountcode = get_accountcode(); } if (empty($limit_max)) { $limit_max = '5'; } if (empty($limit_destination)) { $limit_destination = '!USER_BUSY'; } - if (empty($call_timeout)) { $call_timeout = '30'; } + if (empty($call_timeout)) { $call_timeout = $_SESSION['extension']['call_timeout']['numeric'] ?? 30; } if (empty($call_screen_enabled)) { $call_screen_enabled = 'false'; } if (empty($user_record)) { $user_record = $_SESSION['extension']['user_record_default']['text']; } if (empty($voicemail_transcription_enabled)) { $voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean']; }