mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update dialplan_add.php
This commit is contained in:
@@ -43,6 +43,9 @@
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//initialize the destinations object
|
||||
$destination = new destinations;
|
||||
|
||||
//set the variables
|
||||
if (count($_POST) > 0) {
|
||||
$dialplan_name = $_POST["dialplan_name"];
|
||||
@@ -155,8 +158,10 @@
|
||||
$array['dialplan_details'][2]['dialplan_uuid'] = $dialplan_uuid;
|
||||
$array['dialplan_details'][2]['dialplan_detail_uuid'] = $dialplan_detail_uuid;
|
||||
$array['dialplan_details'][2]['dialplan_detail_tag'] = 'action';
|
||||
$array['dialplan_details'][2]['dialplan_detail_type'] = $action_application_1;
|
||||
$array['dialplan_details'][2]['dialplan_detail_data'] = $action_data_1;
|
||||
if ($destination->valid($action_application_1.':'.$action_data_1)) {
|
||||
$array['dialplan_details'][2]['dialplan_detail_type'] = $action_application_1;
|
||||
$array['dialplan_details'][2]['dialplan_detail_data'] = $action_data_1;
|
||||
}
|
||||
$array['dialplan_details'][2]['dialplan_detail_order'] = '3';
|
||||
|
||||
//add action 2
|
||||
@@ -166,8 +171,10 @@
|
||||
$array['dialplan_details'][3]['dialplan_uuid'] = $dialplan_uuid;
|
||||
$array['dialplan_details'][3]['dialplan_detail_uuid'] = $dialplan_detail_uuid;
|
||||
$array['dialplan_details'][3]['dialplan_detail_tag'] = 'action';
|
||||
$array['dialplan_details'][3]['dialplan_detail_type'] = $action_application_2;
|
||||
$array['dialplan_details'][3]['dialplan_detail_data'] = $action_data_2;
|
||||
if ($destination->valid($action_application_2.':'.$action_data_2)) {
|
||||
$array['dialplan_details'][3]['dialplan_detail_type'] = $action_application_2;
|
||||
$array['dialplan_details'][3]['dialplan_detail_data'] = $action_data_2;
|
||||
}
|
||||
$array['dialplan_details'][3]['dialplan_detail_order'] = '4';
|
||||
}
|
||||
|
||||
@@ -191,9 +198,6 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
//initialize the destinations object
|
||||
$destination = new destinations;
|
||||
|
||||
//javascript type on change
|
||||
?><script type="text/javascript">
|
||||
<!--
|
||||
@@ -562,4 +566,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user