mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Adjust defaults values for enabled and dialplan_continue
- IVR Menu option enabled by default - Dialplan Add - dialplan_continue: false - Add Outbound Route - dialplan to set call_direction dialplan_continue: true - dialplan for the main outbound route dialplan_continue: false
This commit is contained in:
@@ -43,13 +43,18 @@
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//set the defaults
|
||||
//initialize the variables
|
||||
$prefix_number = '';
|
||||
$dialplan_description = '';
|
||||
$limit = '';
|
||||
$accountcode = '';
|
||||
$toll_allow = '';
|
||||
|
||||
//set the defaults
|
||||
$dialplan_context = $_SESSION['domain_name'];
|
||||
$app_uuid = '8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3';
|
||||
$dialplan_enabled = true;
|
||||
|
||||
//get the http post values and set theme as php variables
|
||||
if (!empty($_POST)) {
|
||||
//set the variables
|
||||
@@ -434,9 +439,6 @@
|
||||
if (empty($dialplan_order)) {
|
||||
$dialplan_order ='300';
|
||||
}
|
||||
$dialplan_context = $_SESSION['domain_name'];
|
||||
$dialplan_continue = false;
|
||||
$app_uuid = '8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3';
|
||||
|
||||
//set the uuid
|
||||
$dialplan_uuid = uuid();
|
||||
@@ -448,7 +450,7 @@
|
||||
$array['dialplans'][$x]['app_uuid'] = $app_uuid;
|
||||
$array['dialplans'][$x]['dialplan_name'] = 'call_direction-outbound'.(empty($dialplan_description) && !empty($abbrv) ? '.'.$abbrv : null);
|
||||
$array['dialplans'][$x]['dialplan_order'] = '22';
|
||||
$array['dialplans'][$x]['dialplan_continue'] = true;
|
||||
$array['dialplans'][$x]['dialplan_continue'] = 'true';
|
||||
$array['dialplans'][$x]['dialplan_context'] = $dialplan_context;
|
||||
$array['dialplans'][$x]['dialplan_enabled'] = $dialplan_enabled;
|
||||
$array['dialplans'][$x]['dialplan_description'] = $dialplan_description;
|
||||
@@ -505,7 +507,7 @@
|
||||
$array['dialplans'][$x]['app_uuid'] = $app_uuid;
|
||||
$array['dialplans'][$x]['dialplan_name'] = $dialplan_name;
|
||||
$array['dialplans'][$x]['dialplan_order'] = $dialplan_order;
|
||||
$array['dialplans'][$x]['dialplan_continue'] = $dialplan_continue;
|
||||
$array['dialplans'][$x]['dialplan_continue'] = 'false';
|
||||
$array['dialplans'][$x]['dialplan_context'] = $dialplan_context;
|
||||
$array['dialplans'][$x]['dialplan_enabled'] = $dialplan_enabled;
|
||||
$array['dialplans'][$x]['dialplan_description'] = $dialplan_description;
|
||||
@@ -862,9 +864,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
//set the defaults
|
||||
$dialplan_enabled = $dialplan_enabled ?? true;
|
||||
|
||||
//get the domains
|
||||
$sql = "select * from v_domains ";
|
||||
$sql .= "where domain_enabled = true ";
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
//set the defaults
|
||||
$dialplan_context = $dialplan_context ?? $_SESSION['domain_name'];
|
||||
$dialplan_enabled = $dialplan_enabled ?? true;
|
||||
$dialplan_continue = false;
|
||||
|
||||
//add or update data from http post
|
||||
if (count($_POST)>0 && empty($_POST["persistformvar"])) {
|
||||
@@ -120,7 +121,7 @@
|
||||
$array['dialplans'][0]['app_uuid'] = '742714e5-8cdf-32fd-462c-cbe7e3d655db';
|
||||
$array['dialplans'][0]['dialplan_name'] = $dialplan_name;
|
||||
$array['dialplans'][0]['dialplan_order'] = $dialplan_order;
|
||||
$array['dialplans'][0]['dialplan_continue'] = false;
|
||||
$array['dialplans'][0]['dialplan_continue'] = $dialplan_continue ? 'true': 'false';
|
||||
$array['dialplans'][0]['dialplan_context'] = $dialplan_context;
|
||||
$array['dialplans'][0]['dialplan_enabled'] = $dialplan_enabled;
|
||||
$array['dialplans'][0]['dialplan_description'] = $dialplan_description;
|
||||
|
||||
@@ -564,7 +564,7 @@
|
||||
$ivr_menu_options[$id]['ivr_menu_option_param'] = '';
|
||||
$ivr_menu_options[$id]['ivr_menu_option_order'] = '';
|
||||
$ivr_menu_options[$id]['ivr_menu_option_description'] = '';
|
||||
$ivr_menu_options[$id]['ivr_menu_option_enabled'] = false;
|
||||
$ivr_menu_options[$id]['ivr_menu_option_enabled'] = true;
|
||||
$id++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user