mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Change error/user_busy to USER_BUSY
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
foreach($_SESSION['user']['extension'] as $row) {
|
||||
//build the array
|
||||
$array['extensions'][$x]['extension_uuid'] = $row['extension_uuid'];
|
||||
$array['extensions'][$x]['dial_string'] = 'error/user_busy';
|
||||
$array['extensions'][$x]['dial_string'] = '!USER_BUSY';
|
||||
$array['extensions'][$x]['do_not_disturb'] = 'true';
|
||||
|
||||
//delete extension from the cache
|
||||
|
||||
@@ -893,7 +893,7 @@
|
||||
if (strlen($max_registrations) == 0) { $max_registrations = $_SESSION['extension']['max_registrations']['numeric']; }
|
||||
if (strlen($accountcode) == 0) { $accountcode = get_accountcode(); }
|
||||
if (strlen($limit_max) == 0) { $limit_max = '5'; }
|
||||
if (strlen($limit_destination) == 0) { $limit_destination = 'error/user_busy'; }
|
||||
if (strlen($limit_destination) == 0) { $limit_destination = '!USER_BUSY'; }
|
||||
if (strlen($call_timeout) == 0) { $call_timeout = '30'; }
|
||||
if (strlen($call_screen_enabled) == 0) { $call_screen_enabled = 'false'; }
|
||||
if (strlen($user_record) == 0) { $user_record = $_SESSION['extension']['user_record_default']['text']; }
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
--DND enabled
|
||||
if (feature_action == "SetDoNotDisturb" and feature_enabled == "true") then
|
||||
--set a variable
|
||||
dial_string = "error/user_busy";
|
||||
dial_string = "!USER_BUSY";
|
||||
do_not_disturb = "true";
|
||||
|
||||
--update the extension
|
||||
|
||||
@@ -381,7 +381,7 @@
|
||||
|
||||
--set the dial_string
|
||||
if (do_not_disturb == "true") then
|
||||
dial_string = "error/USER_BUSY";
|
||||
dial_string = "!USER_BUSY";
|
||||
elseif (string.len(row.dial_string) > 0) then
|
||||
dial_string = row.dial_string;
|
||||
else
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
sql = "update v_extensions set ";
|
||||
if (enabled == "true") then
|
||||
sql = sql .. "follow_me_enabled = 'false', ";
|
||||
sql = sql .. "dial_string = 'error/user_busy', ";
|
||||
sql = sql .. "dial_string = '!USER_BUSY', ";
|
||||
sql = sql .. "do_not_disturb = 'true', ";
|
||||
sql = sql .. "forward_all_enabled = 'false' ";
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user