From f89ecf5b36c838798158f36cb27c3a2bef0e4725 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Tue, 12 Jul 2022 19:32:49 -0400 Subject: [PATCH] [dialplan] NANP match + only if followed by a 1 (#6436) --- app/dialplan_outbound/dialplan_outbound_add.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index a1f2c50b01..6c996bbbe4 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -235,7 +235,7 @@ $label = $text['label-11d']; $abbrv = "11d"; break; - case "^\+?1?([2-9]\d{2}[2-9]\d{2}\d{4})$": + case "^(?:\+1|1)?([2-9]\d{2}[2-9]\d{2}\d{4})$": $label = $text['label-north_america']; $abbrv = "10-11-NANP"; break;