blob: 8af7dcd0733f84e3b97c4873973675737b00b160 [file] [log] [blame]
Harald Weltedd540862011-11-04 22:25:40 +01001
2-type digit() :: 0..9.
3-type global_title() :: non_neg_integer().
4-type digit_list() :: [digit()].
5-type nature_of_addr() :: 1..256. % FIXME
6-type numbering_plan() :: 1..256. % FIXME
7
Harald Welte1f47f672011-04-02 14:33:31 +02008% Record describing a GTT match
9-record(gtt_match, {
Harald Weltedd540862011-11-04 22:25:40 +010010 gt_range_from :: global_title(), % integer(), GT range lower boundary, included
11 gt_range_to :: global_title(), % integer(), GT range upper boundary, included
12 numbering_plan :: numbering_plan(),
13 nature_of_addr_ind :: nature_of_addr(),
14 dpc :: non_neg_integer(),
15 ssn :: non_neg_integer()
16 }).
Harald Welte1f47f672011-04-02 14:33:31 +020017
18% GTT action for replacing some digits
19-record(gtt_act_repl_digits, {
Harald Weltedd540862011-11-04 22:25:40 +010020 replace_digit_start :: non_neg_integer(), % digit from which we should replace
21 replace_digit_end :: non_neg_integer(),
22 new_digits :: digit_list()
Harald Welte1f47f672011-04-02 14:33:31 +020023 }).
24
25% GTT action for replacing the numbering plan
26-record(gtt_act_repl_num_plan, {
Harald Weltedd540862011-11-04 22:25:40 +010027 numbering_plan :: numbering_plan()
Harald Welte1f47f672011-04-02 14:33:31 +020028 }).
Harald Welte7a321db2011-04-02 18:15:04 +020029
30% GTT action for a generic apply/3 call
31-record(gtt_act_apply, {
32 funct,
Harald Weltedd540862011-11-04 22:25:40 +010033 args :: list()
Harald Welte7a321db2011-04-02 18:15:04 +020034 }).