summarylogtreecommitdiffstats
path: root/0001-dialrules.7-10.digits.USA.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-dialrules.7-10.digits.USA.patch')
-rw-r--r--0001-dialrules.7-10.digits.USA.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/0001-dialrules.7-10.digits.USA.patch b/0001-dialrules.7-10.digits.USA.patch
new file mode 100644
index 00000000000..6d2f0d35ed7
--- /dev/null
+++ b/0001-dialrules.7-10.digits.USA.patch
@@ -0,0 +1,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
+ ]