Update call_flow_edit.php
This commit is contained in:
parent
7b4cdda010
commit
c16ac554e4
|
|
@ -88,12 +88,6 @@
|
|||
$alternate_destination_array = explode(":", $call_flow_alternate_destination);
|
||||
$call_flow_alternate_app = array_shift($alternate_destination_array);
|
||||
$call_flow_alternate_data = join(':', $alternate_destination_array);
|
||||
|
||||
|
||||
//set the context for users that are not in the superadmin group
|
||||
if (!if_group("superadmin")) {
|
||||
$call_flow_context = $_SESSION['domain_name'];
|
||||
}
|
||||
}
|
||||
|
||||
//process the user data and save it to the database
|
||||
|
|
@ -158,6 +152,11 @@
|
|||
$_POST["dialplan_uuid"] = $dialplan_uuid;
|
||||
}
|
||||
|
||||
//set the context for users that are not in the superadmin group
|
||||
if (!if_group("superadmin")) {
|
||||
$call_flow_context = $_SESSION['domain_name'];
|
||||
}
|
||||
|
||||
//escape special characters
|
||||
$destination_extension = $call_flow_extension;
|
||||
$destination_extension = str_replace("*", "\*", $destination_extension);
|
||||
|
|
@ -185,7 +184,7 @@
|
|||
$dialplan["dialplan_uuid"] = $dialplan_uuid;
|
||||
$dialplan["dialplan_name"] = $call_flow_name;
|
||||
$dialplan["dialplan_number"] = $call_flow_extension;
|
||||
$dialplan["dialplan_context"] = $_SESSION['context'];
|
||||
$dialplan["dialplan_context"] = $call_flow_context;
|
||||
$dialplan["dialplan_continue"] = "false";
|
||||
$dialplan["dialplan_xml"] = $dialplan_xml;
|
||||
$dialplan["dialplan_order"] = "333";
|
||||
|
|
|
|||
Loading…
Reference in New Issue