diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php
index 1560528bb7..72b47741f0 100644
--- a/app/call_flows/call_flow_edit.php
+++ b/app/call_flows/call_flow_edit.php
@@ -57,12 +57,12 @@ else {
$call_flow_status = check_str($_POST["call_flow_status"]);
$call_flow_pin_number = check_str($_POST["call_flow_pin_number"]);
$call_flow_label = check_str($_POST["call_flow_label"]);
+ $call_flow_sound = check_str($_POST["call_flow_sound"]);
$call_flow_destination = check_str($_POST["call_flow_destination"]);
- $call_flow_anti_label = check_str($_POST["call_flow_anti_label"]);
+ $call_flow_alternate_label = check_str($_POST["call_flow_alternate_label"]);
+ $call_flow_alternate_sound = check_str($_POST["call_flow_sound_off"]);
$call_flow_alternate_destination = check_str($_POST["call_flow_alternate_destination"]);
$call_flow_description = check_str($_POST["call_flow_description"]);
- $call_flow_sound_on = check_str($_POST["call_flow_sound_on"]);
- $call_flow_sound_off = check_str($_POST["call_flow_sound_off"]);
$dialplan_uuid = check_str($_POST["dialplan_uuid"]);
//seperate the action and the param
@@ -70,10 +70,10 @@ else {
$call_flow_app = array_shift($destination_array);
$call_flow_data = join(':', $destination_array);
- //seperate the action and the param call_flow_anti_app
+ //seperate the action and the param call_flow_alternate_app
$alternate_destination_array = explode(":", $call_flow_alternate_destination);
- $call_flow_anti_app = array_shift($alternate_destination_array);
- $call_flow_anti_data = join(':', $alternate_destination_array);
+ $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")) {
@@ -100,9 +100,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//if (strlen($call_flow_label) == 0) { $msg .= $text['message-required'].$text['label-destination_label']."
\n"; }
//if (strlen($call_flow_app) == 0) { $msg .= $text['message-required'].$text['label-destination']."
\n"; }
//if (strlen($call_flow_data) == 0) { $msg .= $text['message-required'].$text['label-destination']."
\n"; }
- //if (strlen($call_flow_anti_label) == 0) { $msg .= $text['message-required'].$text['label-alternate_label']."
\n"; }
- //if (strlen($call_flow_anti_app) == 0) { $msg .= $text['message-required'].$text['label-alternate_destination']."
\n"; }
- //if (strlen($call_flow_anti_data) == 0) { $msg .= $text['message-required'].$text['label-alternate_destination']."
\n"; }
+ //if (strlen($call_flow_alternate_label) == 0) { $msg .= $text['message-required'].$text['label-alternate_label']."
\n"; }
+ //if (strlen($call_flow_alternate_app) == 0) { $msg .= $text['message-required'].$text['label-alternate_destination']."
\n"; }
+ //if (strlen($call_flow_alternate_data) == 0) { $msg .= $text['message-required'].$text['label-alternate_destination']."
\n"; }
//if (strlen($call_flow_description) == 0) { $msg .= $text['message-required'].$text['label-description']."
\n"; }
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
@@ -138,11 +138,11 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "call_flow_label, ";
$sql .= "call_flow_app, ";
$sql .= "call_flow_data, ";
- $sql .= "call_flow_anti_label, ";
- $sql .= "call_flow_anti_app, ";
- $sql .= "call_flow_anti_data, ";
+ $sql .= "call_flow_alternate_label, ";
+ $sql .= "call_flow_alternate_app, ";
+ $sql .= "call_flow_alternate_data, ";
$sql .= "call_flow_description, ";
- $sql .= "call_flow_sound_on, ";
+ $sql .= "call_flow_sound, ";
$sql .= "call_flow_sound_off ";
$sql .= ")";
$sql .= "values ";
@@ -159,12 +159,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$call_flow_label', ";
$sql .= "'$call_flow_app', ";
$sql .= "'$call_flow_data', ";
- $sql .= "'$call_flow_anti_label', ";
- $sql .= "'$call_flow_anti_app', ";
- $sql .= "'$call_flow_anti_data', ";
+ $sql .= "'$call_flow_alternate_label', ";
+ $sql .= "'$call_flow_alternate_app', ";
+ $sql .= "'$call_flow_alternate_data', ";
$sql .= "'$call_flow_description', ";
- $sql .= "'$call_flow_sound_on', ";
- $sql .= "'$call_flow_sound_off' ";
+ $sql .= "'$call_flow_sound', ";
+ $sql .= "'$call_flow_alternate_sound' ";
$sql .= ")";
$db->exec(check_sql($sql));
unset($sql);
@@ -187,12 +187,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "call_flow_label = '$call_flow_label', ";
$sql .= "call_flow_app = '$call_flow_app', ";
$sql .= "call_flow_data = '$call_flow_data', ";
- $sql .= "call_flow_anti_label = '$call_flow_anti_label', ";
- $sql .= "call_flow_anti_app = '$call_flow_anti_app', ";
- $sql .= "call_flow_anti_data = '$call_flow_anti_data', ";
+ $sql .= "call_flow_alternate_label = '$call_flow_alternate_label', ";
+ $sql .= "call_flow_alternate_app = '$call_flow_alternate_app', ";
+ $sql .= "call_flow_alternate_data = '$call_flow_alternate_data', ";
$sql .= "call_flow_description = '$call_flow_description', ";
- $sql .= "call_flow_sound_on = '$call_flow_sound_on', ";
- $sql .= "call_flow_sound_off = '$call_flow_sound_off' ";
+ $sql .= "call_flow_sound = '$call_flow_sound', ";
+ $sql .= "call_flow_sound_off = '$call_flow_alternate_sound' ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and call_flow_uuid = '$call_flow_uuid'";
$db->exec(check_sql($sql));
@@ -385,12 +385,12 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$call_flow_app = $row["call_flow_app"];
$call_flow_pin_number = $row["call_flow_pin_number"];
$call_flow_data = $row["call_flow_data"];
- $call_flow_anti_label = $row["call_flow_anti_label"];
- $call_flow_anti_app = $row["call_flow_anti_app"];
- $call_flow_anti_data = $row["call_flow_anti_data"];
+ $call_flow_alternate_label = $row["call_flow_alternate_label"];
+ $call_flow_alternate_app = $row["call_flow_alternate_app"];
+ $call_flow_alternate_data = $row["call_flow_alternate_data"];
$call_flow_description = $row["call_flow_description"];
- $call_flow_sound_on = $row["call_flow_sound_on"];
- $call_flow_sound_off = $row["call_flow_sound_off"];
+ $call_flow_sound = $row["call_flow_sound"];
+ $call_flow_alternate_sound = $row["call_flow_sound_off"];
$dialplan_uuid = $row["dialplan_uuid"];
//if superadmin show both the app and data
@@ -403,10 +403,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//if superadmin show both the app and data
if (if_group("superadmin")) {
- $alternate_destination_label = $call_flow_anti_app.':'.$call_flow_anti_data;
+ $alternate_destination_label = $call_flow_alternate_app.':'.$call_flow_alternate_data;
}
else {
- $alternate_destination_label = $call_flow_anti_data;
+ $alternate_destination_label = $call_flow_alternate_data;
}
}
unset ($prep_statement);
@@ -658,16 +658,16 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
}
if ($call_flow_status == "false") {
- if (strlen($call_flow_anti_label) > 0) {
- echo " \n";
+ if (strlen($call_flow_alternate_label) > 0) {
+ echo " \n";
}
else {
echo " \n";
}
}
else {
- if (strlen($call_flow_anti_label) > 0) {
- echo " \n";
+ if (strlen($call_flow_alternate_label) > 0) {
+ echo " \n";
}
else {
echo " \n";
@@ -701,7 +701,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "\n";
echo "\n";
- sound_select_list($call_flow_sound_on, 'call_flow_sound_on', 'sound_on', true);
+ sound_select_list($call_flow_sound, 'call_flow_sound', 'sound_on', true);
echo "