summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-05-03 19:19:06 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-05-03 19:19:06 +0000
commit87a8b2b6d3c55976185b342770006596703bdfd9 (patch)
tree4250eac33fd3502fbfa2045b5c3f46c7db4d0f2c
parent16de34fdb971405900757e4b8fa8a29423b1ec1d (diff)
Docuemnt the tonezones we currently have.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4232 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--Makefile8
-rw-r--r--README7
2 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c7444c3..622e980 100644
--- a/Makefile
+++ b/Makefile
@@ -373,12 +373,18 @@ fxsdump: LDLIBS+=-lm
stackcheck: checkstack modules
./checkstack kernel/*.ko kernel/*/*.ko
+
+tonezones.txt: zonedata.c
+ perl -ne 'next unless (/\.(country|description) = *"([^"]*)/); \
+ print (($$1 eq "country")? "* $$2\t":"$$2\n");' $< \
+ >$@
+
zaptel.conf.asciidoc: zaptel.conf.sample
perl -n -e \
'if (/^#($$|\s)(.*)/){ if (!$$in_doc){print "\n"}; $$in_doc=1; print "$$2\n" } else { if ($$in_doc){print "\n"}; $$in_doc=0; print " $$_" }' \
$< >$@
-README.html: README zaptel.conf.asciidoc
+README.html: README zaptel.conf.asciidoc tonezones.txt
$(ASCIIDOC) -n -a toc -a toclevels=3 $<
kernel/xpp/README.Astribank.html: kernel/xpp/README.Astribank
diff --git a/README b/README
index ed4f3ed..da07d7a 100644
--- a/README
+++ b/README
@@ -413,6 +413,13 @@ Reference Configuration
-----------------------
include::zaptel.conf.asciidoc[]
+Tonezones
+~~~~~~~~~
+The file zonedata.c contains the information about the tone zones used
+in libtonezone (and hence also in ztcfg). Here is a list of those zones:
+
+include::tonezones.txt[]
+
Zaptel PERL modules
-------------------