diff --git a/app/dialplan_outbound/app_config.php b/app/dialplan_outbound/app_config.php index c067c33d8b..84b829dc51 100644 --- a/app/dialplan_outbound/app_config.php +++ b/app/dialplan_outbound/app_config.php @@ -50,7 +50,7 @@ $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['description'] = "Add outbound routes for any gateways on any domain."; $y++; - $apps[$x]['permissions'][$y]['name'] = "outbound_route_pin_codes"; + $apps[$x]['permissions'][$y]['name'] = "outbound_route_pin_numbers"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; diff --git a/app/dialplan_outbound/app_languages.php b/app/dialplan_outbound/app_languages.php index 5b1a1243ab..f04d5847f0 100644 --- a/app/dialplan_outbound/app_languages.php +++ b/app/dialplan_outbound/app_languages.php @@ -121,6 +121,8 @@ $text['label-toll_allow']['ru-ru'] = "Разрешить ВСЕ"; $text['label-toll_allow']['sv-se'] = "Tillåta fjärrsamtal"; $text['label-toll_allow']['uk-ua'] = "TOLL дозволено"; +$text['label-pin_codes']['en-us'] = "Pin Numbers"; + $text['label-sip-gateway']['en-us'] = "SIP Gateways"; $text['label-sip-gateway']['ar-eg'] = ""; $text['label-sip-gateway']['de-at'] = "SIP Gateways"; //copied from de-de diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index 072567dfc3..7d1c45125f 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -66,8 +66,8 @@ $limit = check_str($_POST["limit"]); $accountcode = check_str($_POST["accountcode"]); $toll_allow = check_str($_POST["toll_allow"]); - $pin_codes_enable = check_str($_POST["pin_codes_enabled"]); - if (strlen($pin_codes_enable) == 0) { $pin_codes_enable = "false"; } + $pin_numbers_enable = check_str($_POST["pin_numbers_enabled"]); + if (strlen($pin_numbers_enable) == 0) { $pin_numbers_enable = "false"; } //set the default type $gateway_type = 'gateway'; $gateway_2_type = 'gateway'; @@ -561,7 +561,7 @@ $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_group'] = '0'; } - if ($pin_codes_enable == "true") { + if ($pin_numbers_enable == "true") { $y++; $array['dialplans'][$x]['dialplan_details'][$y]['dialplan_detail_uuid'] = uuid(); $array['dialplans'][$x]['dialplan_details'][$y]['domain_uuid'] = $_SESSION['domain_uuid']; @@ -1027,6 +1027,23 @@ function type_onchange(dialplan_detail_type) { echo "\n"; echo "\n"; +if (permission_exists('outbound_route_pin_numbers')) { + echo "