Make extension concurrent outbound limit a default setting (#6968)

* Make extension concurrent outbound limit a default setting

* Make extension concurrent outbound limit a default setting
This commit is contained in:
denisent 2024-05-16 08:34:43 -07:00 committed by GitHub
parent b35b447344
commit 1b83d95935
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -357,6 +357,14 @@
$apps[$x]['default_settings'][$y]['default_setting_value'] = "30"; $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_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the ring time (delay in seconds) before sending a call to voicemail"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the ring time (delay in seconds) before sending a call to voicemail";
$y++;
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "dad8148d-e96b-45a3-973d-2746bed389a8";
$apps[$x]['default_settings'][$y]['default_setting_category'] = "extension";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "concurrent_outbound_limit";
$apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
$apps[$x]['default_settings'][$y]['default_setting_value'] = "5";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the maximum number of concurrent outbound calls allowed";
//cache details //cache details
$apps[$x]['cache']['key'] = "directory.\${extension}@\${domain_name}"; $apps[$x]['cache']['key'] = "directory.\${extension}@\${domain_name}";

View File

@ -1066,7 +1066,7 @@
if (empty($user_context)) { $user_context = $_SESSION['domain_name']; } if (empty($user_context)) { $user_context = $_SESSION['domain_name']; }
if (empty($max_registrations)) { $max_registrations = $_SESSION['extension']['max_registrations']['numeric'] ?? ''; } if (empty($max_registrations)) { $max_registrations = $_SESSION['extension']['max_registrations']['numeric'] ?? ''; }
if (empty($accountcode)) { $accountcode = get_accountcode(); } if (empty($accountcode)) { $accountcode = get_accountcode(); }
if (empty($limit_max)) { $limit_max = '5'; } if (empty($limit_max)) { $limit_max = $_SESSION['extension']['concurrent_outbound_limit']['numeric'] ?? 5; }
if (empty($limit_destination)) { $limit_destination = '!USER_BUSY'; } if (empty($limit_destination)) { $limit_destination = '!USER_BUSY'; }
if (empty($call_timeout)) { $call_timeout = $_SESSION['extension']['call_timeout']['numeric'] ?? 30; } if (empty($call_timeout)) { $call_timeout = $_SESSION['extension']['call_timeout']['numeric'] ?? 30; }
if (empty($call_screen_enabled)) { $call_screen_enabled = 'false'; } if (empty($call_screen_enabled)) { $call_screen_enabled = 'false'; }