add 988 national suicide prevention lifeline (USA)
This commit is contained in:
parent
aa4cfbc791
commit
eff7246ef4
|
|
@ -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'] = "";
|
||||
|
|
|
|||
|
|
@ -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 " <option value='^(411)\$'>".$text['label-411']."</option>\n";
|
||||
echo " <option value='^(711)\$'>".$text['label-711']."</option>\n";
|
||||
echo " <option value='(^911\$|^933\$)'>".$text['label-911']."</option>\n";
|
||||
echo " <option value='(^988\$)'>".$text['label-988']."</option>\n";
|
||||
echo " <option value='^1?(8(00|33|44|55|66|77|88)[2-9]\\d{6})\$'>".$text['label-800']."</option>\n";
|
||||
echo " <option value='^0118835100\d{8}\$'>".$text['label-inum']."</option>\n";
|
||||
echo " <option value='^9(\\d{2})\$'>".$text['label-9d2']."</option>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue