summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-04-02 14:33:31 +0200
committerHarald Welte <laforge@gnumonks.org>2011-04-02 14:33:31 +0200
commit1f47f67d559878da4e424af5a09f15d43b087259 (patch)
tree4b2712e93b525376fa7221628f916e9d2eba0369 /include
parent030f1091aa439a7018a25fd9765815d9c7cf773d (diff)
Add a new GTT module for GT matching + GT translation (GTT)
Diffstat (limited to 'include')
-rw-r--r--include/gtt.hrl20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/gtt.hrl b/include/gtt.hrl
new file mode 100644
index 0000000..5edeba7
--- /dev/null
+++ b/include/gtt.hrl
@@ -0,0 +1,20 @@
+% Record describing a GTT match
+-record(gtt_match, {
+ gt_range_from, % integer(), GT range lower boundary, included
+ gt_range_to, % integer(), GT range upper boundary, included
+ numbering_plan, % integer()
+ nature_of_addr_ind, % integer()
+ dpc, % integer()
+ ssn}).
+
+% GTT action for replacing some digits
+-record(gtt_act_repl_digits, {
+ replace_digit_start, % integer(), digit from which we should replace
+ replace_digit_end, % integer
+ new_digits % list of integers
+ }).
+
+% GTT action for replacing the numbering plan
+-record(gtt_act_repl_num_plan, {
+ numbering_plan
+ }).