From b31368932a81f678c456b1ccbb72283fb0953581 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 24 Jan 2009 03:01:19 +0000 Subject: FreeSWITCH package adjust dial 9 followed by 10 digits so that result works on the dialplan. --- packages/freeswitch/freeswitch_gateways_edit.tmp | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'packages/freeswitch') diff --git a/packages/freeswitch/freeswitch_gateways_edit.tmp b/packages/freeswitch/freeswitch_gateways_edit.tmp index 5de3dda5..030f88cf 100644 --- a/packages/freeswitch/freeswitch_gateways_edit.tmp +++ b/packages/freeswitch/freeswitch_gateways_edit.tmp @@ -159,6 +159,31 @@ if ($_POST) { $label = "911"; $abbrv = "911"; break; + case "^9(\d{3})$": + $action_data = "sofia/gateway/".$gateway."/1".$default_area_code."\$1"; + $label = "dial 9, 3 digits"; + $abbrv = "9.3d"; + break; + case "^9(\d{4})$": + $action_data = "sofia/gateway/".$gateway."/1".$default_area_code."\$1"; + $label = "dial 9, 4 digits"; + $abbrv = "9.4d"; + break; + case "^9(\d{7})$": + $action_data = "sofia/gateway/".$gateway."/1".$default_area_code."\$1"; + $label = "dial 9, 7 digits"; + $abbrv = "9.7d"; + break; + case "^9(\d{10})$": + $action_data = "sofia/gateway/".$gateway."/\$1"; + $label = "dial 9, 10 digits"; + $abbrv = "9.10d"; + break; + case "^9(\d{11})$": + $action_data = "sofia/gateway/".$gateway."/\$1"; + $label = "dial 9, 11 digits"; + $abbrv = "9.11d"; + break; case "^1?(8(00|55|66|77|88)[2-9]\d{6})$": $action_data = "sofia/gateway/".$gateway."/\$1"; $label = "toll free"; @@ -524,6 +549,7 @@ function show_advanced_config() { + -- cgit v1.2.3