Update dialplan_inbound_add.php

Rename redial_outbound_prefix to caller_id_outbound_prefix to make it more consistent.
This commit is contained in:
FusionPBX 2016-08-31 22:07:44 -06:00 committed by GitHub
parent e28fb87ec1
commit 5a24c5ecfe
1 changed files with 6 additions and 6 deletions

View File

@ -53,7 +53,7 @@ else {
//get the http post values and set them as php variables //get the http post values and set them as php variables
if (count($_POST)>0) { if (count($_POST)>0) {
$dialplan_name = check_str($_POST["dialplan_name"]); $dialplan_name = check_str($_POST["dialplan_name"]);
$redial_outbound_prefix = check_str($_POST["redial_outbound_prefix"]); $caller_id_outbound_prefix = check_str($_POST["caller_id_outbound_prefix"]);
$limit = check_str($_POST["limit"]); $limit = check_str($_POST["limit"]);
$public_order = check_str($_POST["public_order"]); $public_order = check_str($_POST["public_order"]);
$condition_field_1 = check_str($_POST["condition_field_1"]); $condition_field_1 = check_str($_POST["condition_field_1"]);
@ -352,7 +352,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
} }
//set redial outbound prefix //set redial outbound prefix
if (strlen($redial_outbound_prefix) > 0) { if (strlen($caller_id_outbound_prefix) > 0) {
$dialplan_detail_uuid = uuid(); $dialplan_detail_uuid = uuid();
$sql = "insert into v_dialplan_details "; $sql = "insert into v_dialplan_details ";
$sql .= "("; $sql .= "(";
@ -372,7 +372,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$dialplan_detail_uuid', "; $sql .= "'$dialplan_detail_uuid', ";
$sql .= "'action', "; $sql .= "'action', ";
$sql .= "'set', "; $sql .= "'set', ";
$sql .= "'effective_caller_id_number=".$redial_outbound_prefix."\${caller_id_number}', "; $sql .= "'effective_caller_id_number=".$caller_id_outbound_prefix."\${caller_id_number}', ";
$sql .= "'0', "; $sql .= "'0', ";
$sql .= "'70' "; $sql .= "'70' ";
$sql .= ")"; $sql .= ")";
@ -990,12 +990,12 @@ $destination = new destinations;
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n"; echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " ".$text['label-redial-outbound-prefix']."\n"; echo " ".$text['label-caller-id-number-prefix']."\n";
echo "</td>\n"; echo "</td>\n";
echo "<td colspan='4' class='vtable' align='left'>\n"; echo "<td colspan='4' class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='redial_outbound_prefix' maxlength='255' value=\"$limit\">\n"; echo " <input class='formfld' type='text' name='caller_id_outbound_prefix' maxlength='255' value=\"$limit\">\n";
echo "<br />\n"; echo "<br />\n";
echo "".$text['description-redial-outbound-prefix']."<br />\n"; echo "".$text['description-caller-id-number-prefix']."<br />\n";
echo "\n"; echo "\n";
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";