From 71b40deca71884116565bb8e52b2a7aee24c9df8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 16 Sep 2021 14:53:54 -0600 Subject: [PATCH] Add North America Islands --- .../dialplan_outbound_add.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index b5b80c98cc..58f01d8df0 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2020 + Portions created by the Initial Developer are Copyright (C) 2008-2021 the Initial Developer. All Rights Reserved. Contributor(s): @@ -236,11 +236,15 @@ $abbrv = "11d"; break; case "^(?:\+?1)?(\d{10})$": - $label = $text['label-north-america']; + $label = $text['label-north_america']; $abbrv = "10-11d"; break; case "^(011\d{9,17})$": - $label = $text['label-north-america-intl']; + $label = $text['label-north_america_intl']; + $abbrv = "011.9-17d"; + break; + case "^\+?1?((?:264|268|242|246|441|284|345|767|809|829|849|473|658|876|664|787|939|869|758|784|721|868|649|340|684|671|670|808)\d{7})$": + $label = $text['label-north_america_islands']; $abbrv = "011.9-17d"; break; case "^(\d{12,20})$": @@ -1082,9 +1086,10 @@ function type_onchange(dialplan_detail_type) { echo " \n"; echo " \n"; echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; @@ -1104,7 +1109,7 @@ function type_onchange(dialplan_detail_type) { echo " \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "
\n";