diff --git a/app/dialplan_outbound/app_languages.php b/app/dialplan_outbound/app_languages.php
index 59763aea70..226239b9f7 100644
--- a/app/dialplan_outbound/app_languages.php
+++ b/app/dialplan_outbound/app_languages.php
@@ -68,17 +68,14 @@
$text['label-11d']['en-us'] = '11 Digits Long Distance';
$text['label-11d']['fr'] = '11 Digits';
- $text['label-12d']['en-us'] = '12 Digits';
- $text['label-12d']['fr'] = '12 Digits';
+ $text['label-north-america']['en-us'] = 'North America';
+ $text['label-north-america']['fr'] = 'Amérique du Nord';
- $text['label-13d']['en-us'] = '13 Digits';
- $text['label-13d']['fr'] = '13 Digits';
+ $text['label-north-america-intl']['en-us'] = 'North America International';
+ $text['label-north-america-intl']['fr'] = 'Amérique du Nord International';
- $text['label-14d']['en-us'] = '14 Digits';
- $text['label-14d']['fr'] = '14 Digits';
-
- $text['label-int']['en-us'] = '15 Digits International';
- $text['label-int']['fr'] = '15 Digits';
+ $text['label-intl']['en-us'] = 'International';
+ $text['label-intl']['fr'] = 'International';
$text['label-311']['en-us'] = '311 Information';
$text['label-311']['fr'] = '311 Information';
@@ -119,17 +116,8 @@
$text['label-9d11']['en-us'] = 'Dial 9, then 11 Digits';
$text['label-9d11']['fr'] = 'Compose 9, puis 11 Digits';
- $text['label-9d12']['en-us'] = 'Dial 9, then 12 Digits';
- $text['label-9d12']['fr'] = 'Compose 9, puis 12 Digits';
-
- $text['label-9d13']['en-us'] = 'Dial 9, then 13 Digits';
- $text['label-9d13']['fr'] = 'Compose 9, puis 13 Digits';
-
- $text['label-9d14']['en-us'] = 'Dial 9, then 14 Digits';
- $text['label-9d14']['fr'] = 'Compose 9, puis 14 Digits';
-
- $text['label-9d15']['en-us'] = 'Dial 9, then International';
- $text['label-9d15']['fr'] = 'Compose 9, puis International';
+ $text['label-9d.12-20']['en-us'] = 'Dial 9, then International';
+ $text['label-9d.12-20']['fr'] = 'Compose 9, puis International';
$text['label-800']['en-us'] = 'Toll-Free';
$text['label-800']['fr'] = 'Sans Charge';
diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php
index 1043eaa6b0..0d257b80cb 100644
--- a/app/dialplan_outbound/dialplan_outbound_add.php
+++ b/app/dialplan_outbound/dialplan_outbound_add.php
@@ -274,21 +274,17 @@ else {
$label = $text['label-11d'];
$abbrv = "11d";
break;
- case "^(\d{12})$":
- $label = $text['label-12d'];
- $abbrv = "12d";
+ case "^\+?1?(\d{10})$":
+ $label = $text['label-north-america'];
+ $abbrv = "10-11d";
break;
- case "^(\d{13})$":
- $label = $text['label-13d'];
- $abbrv = "13d";
+ case "^(011(\d{9,17})$":
+ $label = $text['label-north-america-intl'];
+ $abbrv = "011.9-17d";
break;
- case "^(\d{14})$":
- $label = $text['label-14d'];
- $abbrv = "14d";
- break;
- case "^(\d{12,15})$":
- $label = $text['label-int'];
- $abbrv = "Intl";
+ case "^(\d{12,20})$":
+ $label = $text['label-intl'];
+ $abbrv = $text['label-intl'];
break;
case "^(311)$":
$label = $text['label-311'];
@@ -322,24 +318,13 @@ else {
$label = $text['label-9d11'];
$abbrv = "9.11d";
break;
- case "^9(\d{12})$":
- $label = $text['label-9d12'];
- $abbrv = "9.Intl";
- break;
- case "^9(\d{13})$":
- $label = $text['label-9d13'];
- $abbrv = "9.13d";
- break;
- case "^9(\d{14})$":
- $label = $text['label-9d14'];
- break;
- case "^9(\d{12,15})$":
- $label = $text['label-9d15'];
- $abbrv = "9.Intl";
+ case "^9(\d{12,20})$":
+ $label = $text['label-9d.12-20'];
+ $abbrv = "9.12-20";
break;
case "^1?(8(00|55|66|77|88)[2-9]\d{6})$":
$label = $text['label-800'];
- $abbrv = "tollfree";
+ $abbrv = "800";
break;
default:
$label = $dialplan_expression;
@@ -882,10 +867,9 @@ 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";
@@ -900,10 +884,7 @@ 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";