diff --git a/app/dialplan_outbound/app_languages.php b/app/dialplan_outbound/app_languages.php
index b555764f20..f8243b49fc 100644
--- a/app/dialplan_outbound/app_languages.php
+++ b/app/dialplan_outbound/app_languages.php
@@ -757,6 +757,27 @@ $text['label-911']['ru-ru'] = "911 Служба Спасения";
$text['label-911']['sv-se'] = "911 Nödfall";
$text['label-911']['uk-ua'] = "911";
+$text['label-988']['en-us'] = "988 National Suicide Prevention Lifeline";
+$text['label-988']['en-gb'] = "988 National Suicide Prevention Lifeline";
+$text['label-988']['ar-eg'] = "988";
+$text['label-988']['de-at'] = "988 Nationale Rettungsleine für Suizidprävention (USA)";
+$text['label-988']['de-ch'] = "988 Nationale Rettungsleine für Suizidprävention (USA)";
+$text['label-988']['de-de'] = "988 Nationale Rettungsleine für Suizidprävention (USA)";
+$text['label-988']['es-cl'] = "988 Línea de vida nacional para la prevención del suicidio";
+$text['label-988']['es-mx'] = "988 Línea de vida nacional para la prevención del suicidio";
+$text['label-988']['fr-ca'] = "988 Ligne de vie nationale pour la prévention du suicide";
+$text['label-988']['fr-fr'] = "988 Ligne de vie nationale pour la prévention du suicide";
+$text['label-988']['he-il'] = "988";
+$text['label-988']['it-it'] = "988 Linea di vita nazionale per la prevenzione del suicidio";
+$text['label-988']['nl-nl'] = "988 Nationale levenslijn voor zelfmoordpreventie";
+$text['label-988']['pl-pl'] = "988 National Suicide Prevention Lifeline";
+$text['label-988']['pt-br'] = "988 National Suicide Prevention Lifeline";
+$text['label-988']['pt-pt'] = "988";
+$text['label-988']['ro-ro'] = "988";
+$text['label-988']['ru-ru'] = "988";
+$text['label-988']['sv-se'] = "988";
+$text['label-988']['uk-ua'] = "988";
+
$text['label-8d']['en-us'] = "8 Digits";
$text['label-8d']['en-gb'] = "8 Digits";
$text['label-8d']['ar-eg'] = "";
diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php
index 1274d864e8..004fc6761c 100644
--- a/app/dialplan_outbound/dialplan_outbound_add.php
+++ b/app/dialplan_outbound/dialplan_outbound_add.php
@@ -263,6 +263,10 @@
$label = $text['label-911'];
$abbrv = "911";
break;
+ case "(^988$)":
+ $label = $text['label-988'];
+ $abbrv = "988";
+ break;
case "^9(\d{3})$":
$label = $text['label-9d3'];
$abbrv = "9.3d";
@@ -308,15 +312,27 @@
if ($gateway_type == "gateway") {
$dialplan_name = $gateway_name.".".$abbrv;
- $bridge_data = "sofia/gateway/".$gateway_uuid."/".$prefix_number."\$1";
+ if ($abbrv == "988") {
+ $bridge_data = "sofia/gateway/".$gateway_uuid."/".$prefix_number."18002738255";
+ } else {
+ $bridge_data = "sofia/gateway/".$gateway_uuid."/".$prefix_number."\$1";
+ }
}
if (strlen($gateway_2_name) > 0 && $gateway_2_type == "gateway") {
$extension_2_name = $gateway_2_id.".".$abbrv;
- $bridge_2_data .= "sofia/gateway/".$gateway_2_id."/".$prefix_number."\$1";
+ if ($abbrv == "988") {
+ $bridge_2_data = "sofia/gateway/".$gateway_2_id."/".$prefix_number."18002738255";
+ } else {
+ $bridge_2_data = "sofia/gateway/".$gateway_2_id."/".$prefix_number."\$1";
+ }
}
if (strlen($gateway_3_name) > 0 && $gateway_3_type == "gateway") {
$extension_3_name = $gateway_3_id.".".$abbrv;
- $bridge_3_data .= "sofia/gateway/".$gateway_3_id."/".$prefix_number."\$1";
+ if ($abbrv == "988") {
+ $bridge_3_data = "sofia/gateway/".$gateway_3_id."/".$prefix_number."18002738255";
+ } else {
+ $bridge_3_data = "sofia/gateway/".$gateway_3_id."/".$prefix_number."\$1";
+ }
}
if ($gateway_type == "freetdm") {
$dialplan_name = "freetdm.".$abbrv;
@@ -1074,6 +1090,7 @@ function type_onchange(dialplan_detail_type) {
echo " \n";
echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
echo " \n";
echo " \n";