diff options
author | Mark Crane <mcrane@pfsense.org> | 2009-01-24 03:01:19 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2009-01-24 03:01:19 +0000 |
commit | b31368932a81f678c456b1ccbb72283fb0953581 (patch) | |
tree | bb4ef96fdea338d521e7d347f2296968c31c3bb6 | |
parent | 0e90d6f18bd0411854e0196cdddc617a18eb1c67 (diff) | |
download | pfsense-packages-b31368932a81f678c456b1ccbb72283fb0953581.tar.gz pfsense-packages-b31368932a81f678c456b1ccbb72283fb0953581.tar.bz2 pfsense-packages-b31368932a81f678c456b1ccbb72283fb0953581.zip |
FreeSWITCH package adjust dial 9 followed by 10 digits so that result works on the dialplan.
-rw-r--r-- | packages/freeswitch/freeswitch_gateways_edit.tmp | 26 |
1 files changed, 26 insertions, 0 deletions
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() { <option value='^1?(8(00|55|66|77|88)[2-9]\d{6})$'>toll free</option> <option value='^9(\d{3})$'>Dial 9 then 3 digits</option> <option value='^9(\d{4})$'>Dial 9 then 4 digits</option> + <option value='^9(\d{7})$'>Dial 9 then 7 digits</option> <option value='^9(\d{10})$'>Dial 9 then 10 digits</option> <option value='^9(\d{11})$'>Dial 9 then 11 digits</option> </select> |