summarylogtreecommitdiffstats
path: root/0001-dialrules.7-10.digits.USA.patch
blob: 6d2f0d35ed77f0eb9376380449442db1b5da6c34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- dialrules.default	2017-07-18 21:05:12.000000000 -0400
+++ dialrules	2017-07-19 00:07:56.458123090 -0400
@@ -54,6 +54,12 @@ DialString := [
 [jklJKL]		= 5
 [mnoMNO]		= 6
 [prsPRS]		= 7
 [tuvTUV]		= 8
 [wxyWXY]		= 9
+! ^[0-9]{7}$		= ${AreaCode}&		! add area code for USA 7-digit dialers
+! ^[0-9]{10}$		= ${Country}&		! add country code for USA 10-digit dialers
+! Trim to local calls with lines like these
+! local NNX list generated by localnxxtoregex.sh from Arch Linux HylaFax+ package
+! ^${Country}${Area}(20[156])	= \1		! USA NXX local Big Town calls
+! ^${Country}${Area}(240)	= \1		! USA NXX local Small Town calls
 ]