This reverts commit a6a5068ea6.
This commit is contained in:
parent
d269f36d71
commit
a9f7728cdb
|
|
@ -51,5 +51,5 @@
|
||||||
$apps[$x]['permissions'][$y]['description'] = "Add outbound routes for any gateways on any domain.";
|
$apps[$x]['permissions'][$y]['description'] = "Add outbound routes for any gateways on any domain.";
|
||||||
$y++;
|
$y++;
|
||||||
$apps[$x]['permissions'][$y]['name'] = "outbound_route_toll_allow_lua";
|
$apps[$x]['permissions'][$y]['name'] = "outbound_route_toll_allow_lua";
|
||||||
$apps[$x]['permissions'][$y]['name'] = "outbound_route_pin_codes";
|
|
||||||
?>
|
?>
|
||||||
|
|
@ -121,27 +121,6 @@ $text['label-toll_allow']['ru-ru'] = "Разрешить ВСЕ";
|
||||||
$text['label-toll_allow']['sv-se'] = "Tillåta fjärrsamtal";
|
$text['label-toll_allow']['sv-se'] = "Tillåta fjärrsamtal";
|
||||||
$text['label-toll_allow']['uk-ua'] = "TOLL дозволено";
|
$text['label-toll_allow']['uk-ua'] = "TOLL дозволено";
|
||||||
|
|
||||||
$text['label-pin_codes']['en-us'] = "Pin Codes";
|
|
||||||
$text['label-pin_codes']['ar-eg'] = "";
|
|
||||||
$text['label-pin_codes']['de-at'] = "PIN-Codes"; //copied from de-de
|
|
||||||
$text['label-pin_codes']['de-ch'] = "PIN-Codes"; //copied from de-de
|
|
||||||
$text['label-pin_codes']['de-de'] = "PIN-Codes";
|
|
||||||
$text['label-pin_codes']['es-cl'] = "Códigos PIN";
|
|
||||||
$text['label-pin_codes']['es-mx'] = "Códigos PIN"; //copied from es-cl
|
|
||||||
$text['label-pin_codes']['fr-ca'] = "Codes Pin"; //copied from fr-fr
|
|
||||||
$text['label-pin_codes']['fr-fr'] = "Codes Pin";
|
|
||||||
$text['label-pin_codes']['he-il'] = "";
|
|
||||||
$text['label-pin_codes']['it-it'] = "Codici pin";
|
|
||||||
$text['label-pin_codes']['nl-nl'] = "";
|
|
||||||
$text['label-pin_codes']['pl-pl'] = "Kody pinów";
|
|
||||||
$text['label-pin_codes']['pt-br'] = ""; //copied from pt-pt
|
|
||||||
$text['label-pin_codes']['pt-pt'] = "";
|
|
||||||
$text['label-pin_codes']['ro-ro'] = "";
|
|
||||||
$text['label-pin_codes']['ru-ru'] = "Штриховые коды";
|
|
||||||
$text['label-pin_codes']['sv-se'] = "Пин кодови";
|
|
||||||
$text['label-pin_codes']['uk-ua'] = "Кодів PIN-коду";
|
|
||||||
|
|
||||||
|
|
||||||
$text['label-sip-gateway']['en-us'] = "SIP Gateways";
|
$text['label-sip-gateway']['en-us'] = "SIP Gateways";
|
||||||
$text['label-sip-gateway']['ar-eg'] = "";
|
$text['label-sip-gateway']['ar-eg'] = "";
|
||||||
$text['label-sip-gateway']['de-at'] = "SIP Gateways"; //copied from de-de
|
$text['label-sip-gateway']['de-at'] = "SIP Gateways"; //copied from de-de
|
||||||
|
|
|
||||||
|
|
@ -65,9 +65,8 @@
|
||||||
$limit = check_str($_POST["limit"]);
|
$limit = check_str($_POST["limit"]);
|
||||||
$accountcode = check_str($_POST["accountcode"]);
|
$accountcode = check_str($_POST["accountcode"]);
|
||||||
$toll_allow_enable = check_str($_POST["toll_allow_enabled"]);
|
$toll_allow_enable = check_str($_POST["toll_allow_enabled"]);
|
||||||
$pin_codes_enable = check_str($_POST["pin_codes_enabled"]);
|
|
||||||
//set default to enabled
|
//set default to enabled
|
||||||
if (strlen($pin_codes_enable) == 0) { $pin_codes_enable = "false"; }
|
|
||||||
if (strlen($toll_allow_enable) == 0) { $toll_allow_enable = "false"; }
|
if (strlen($toll_allow_enable) == 0) { $toll_allow_enable = "false"; }
|
||||||
|
|
||||||
//set the default type
|
//set the default type
|
||||||
|
|
@ -561,18 +560,6 @@
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_order'] = $y * 10;
|
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_order'] = $y * 10;
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0';
|
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($pin_codes_enable == "true") {
|
|
||||||
$y++;
|
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_uuid'] = uuid();
|
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['domain_uuid'] = $_SESSION['domain_uuid'];
|
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_uuid'] = $dialplan_uuid;
|
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_tag'] = 'action';
|
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_type'] = 'set';
|
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_data'] = 'pin_number=database';
|
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_order'] = $y * 10;
|
|
||||||
$array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($gateway_type == "transfer") { $dialplan_detail_type = 'transfer'; } else { $dialplan_detail_type = 'bridge'; }
|
if ($gateway_type == "transfer") { $dialplan_detail_type = 'transfer'; } else { $dialplan_detail_type = 'bridge'; }
|
||||||
$y++;
|
$y++;
|
||||||
|
|
@ -1034,23 +1021,6 @@ function type_onchange(dialplan_detail_type) {
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (permission_exists('outbound_route_pin_codes')) {
|
|
||||||
echo "<tr>\n";
|
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
|
||||||
echo " ".$text['label-pin_codes']."\n";
|
|
||||||
echo "</td>\n";
|
|
||||||
echo "<td class='vtable' align='left'>\n";
|
|
||||||
echo " <select class='formfld' name='pin_codes_enabled'>\n";
|
|
||||||
echo " <option value='true'>".$text['label-true']."</option>\n";
|
|
||||||
echo " <option value='false' selected='true'>".$text['label-false']."</option>\n";
|
|
||||||
echo " </select>\n";
|
|
||||||
echo "<br />\n";
|
|
||||||
echo $text['description-enable-pin_codes']."\n";
|
|
||||||
echo "</td>\n";
|
|
||||||
echo "</tr>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$text['label-order']."\n";
|
echo " ".$text['label-order']."\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue