Harald Welte | dd54086 | 2011-11-04 22:25:40 +0100 | [diff] [blame] | 1 | |
| 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 Welte | 1f47f67 | 2011-04-02 14:33:31 +0200 | [diff] [blame] | 8 | % Record describing a GTT match |
| 9 | -record(gtt_match, { |
Harald Welte | dd54086 | 2011-11-04 22:25:40 +0100 | [diff] [blame] | 10 | 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 Welte | 1f47f67 | 2011-04-02 14:33:31 +0200 | [diff] [blame] | 17 | |
| 18 | % GTT action for replacing some digits |
| 19 | -record(gtt_act_repl_digits, { |
Harald Welte | dd54086 | 2011-11-04 22:25:40 +0100 | [diff] [blame] | 20 | 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 Welte | 1f47f67 | 2011-04-02 14:33:31 +0200 | [diff] [blame] | 23 | }). |
| 24 | |
| 25 | % GTT action for replacing the numbering plan |
| 26 | -record(gtt_act_repl_num_plan, { |
Harald Welte | dd54086 | 2011-11-04 22:25:40 +0100 | [diff] [blame] | 27 | numbering_plan :: numbering_plan() |
Harald Welte | 1f47f67 | 2011-04-02 14:33:31 +0200 | [diff] [blame] | 28 | }). |
Harald Welte | 7a321db | 2011-04-02 18:15:04 +0200 | [diff] [blame] | 29 | |
| 30 | % GTT action for a generic apply/3 call |
| 31 | -record(gtt_act_apply, { |
| 32 | funct, |
Harald Welte | dd54086 | 2011-11-04 22:25:40 +0100 | [diff] [blame] | 33 | args :: list() |
Harald Welte | 7a321db | 2011-04-02 18:15:04 +0200 | [diff] [blame] | 34 | }). |