blob: 84a2ddb703d01f2698f33be3e95ad3b0dcb20ce7 [file] [log] [blame]
Harald Welte26bdef22012-01-16 22:22:17 +01001% RFC 3868 SUA SCCP User Adaption
2
3% (C) 2012 by Harald Welte <laforge@gnumonks.org>
4%
5% All Rights Reserved
6%
7% This program is free software; you can redistribute it and/or modify
8% it under the terms of the GNU Affero General Public License as
9% published by the Free Software Foundation; either version 3 of the
10% License, or (at your option) any later version.
11%
12% This program is distributed in the hope that it will be useful,
13% but WITHOUT ANY WARRANTY; without even the implied warranty of
14% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15% GNU General Public License for more details.
16%
17% You should have received a copy of the GNU Affero General Public License
18% along with this program. If not, see <http://www.gnu.org/licenses/>.
19
Harald Welted174b002012-01-17 09:00:11 +010020-define(SUA_PPID, 4).
21-define(SUA_PORT, 14001).
22
Harald Welte26bdef22012-01-16 22:22:17 +010023% 3.1.2 Message Classes
24-define(SUA_MSGC_MGMT, 0).
25-define(SUA_MSGC_SNM, 2).
26-define(SUA_MSGC_ASPSM, 3).
27-define(SUA_MSGC_ASPTM, 4).
28-define(SUA_MSGC_CL, 7).
29-define(SUA_MSGC_CO, 8).
30-define(SUA_MSGC_RKM, 9).
31
32% 3.1.3 Message Types
33-define(SUA_MGMT_ERR, 0).
34-define(SUA_MGMT_NTFY, 1).
35
36-define(SUA_SNM_DUNA, 1).
37-define(SUA_SNM_DAVA, 2).
38-define(SUA_SNM_DAUD, 3).
39-define(SUA_SNM_SCON, 4).
40-define(SUA_SNM_DUPU, 5).
41-define(SUA_SNM_DRST, 6).
42
43-define(SUA_ASPSM_UP, 1).
44-define(SUA_ASPSM_DOWN, 2).
45-define(SUA_ASPSM_BEAT, 3).
46-define(SUA_ASPSM_UP_ACK, 4).
47-define(SUA_ASPSM_DOWN_ACK, 5).
48-define(SUA_ASPSM_BEAT_ACK, 6).
49
50-define(SUA_ASPTM_ACTIVE, 1).
51-define(SUA_ASPTM_INACTIVE, 2).
52-define(SUA_ASPTM_ACTIVE_ACK, 3).
53-define(SUA_ASPTM_INACTIVE_ACK, 4).
54
55-define(SUA_RKM_REG_REQ, 1).
56-define(SUA_RKM_REG_RSP, 2).
57-define(SUA_RKM_DEREG_REQ, 3).
58-define(SUA_RKM_DEREG_RSP, 4).
59
60-define(SUA_CL_CLDT, 1).
61-define(SUA_CL_CLDR, 2).
62
63-define(SUA_CO_CORE, 1).
64-define(SUA_CO_COAK, 2).
65-define(SUA_CO_COREF, 3).
66-define(SUA_CO_RELRE, 4).
67-define(SUA_CO_RELCO, 5).
68-define(SUA_CO_RESCO, 6).
69-define(SUA_CO_RESRE, 7).
70-define(SUA_CO_CODT, 8).
71-define(SUA_CO_CODA, 9).
72-define(SUA_CO_COERR, 10).
73-define(SUA_CO_COIT, 11).
74
75-define(SUA_IEI_ROUTE_CTX, 16#0006).
76-define(SUA_IEI_CORR_ID, 16#0013).
77-define(SUA_IEI_REG_RESULT, 16#0014).
78-define(SUA_IEI_DEREG_RESULT, 16#0015).
79
80% 3.10 SUA specific parameters
81
82-define(SUA_IEI_S7_HOP_CTR, 16#0101).
83-define(SUA_IEI_SRC_ADDR, 16#0102).
Harald Welte50dfc192012-01-17 15:11:37 +010084-define(SUA_IEI_DEST_ADDR, 16#0103).
Harald Welte26bdef22012-01-16 22:22:17 +010085-define(SUA_IEI_SRC_REF, 16#0104).
86-define(SUA_IEI_DEST_REF, 16#0105).
87-define(SUA_IEI_CAUSE, 16#0106).
88-define(SUA_IEI_SEQ_NR, 16#0107).
89-define(SUA_IEI_RX_SEQ_NR, 16#0108).
90-define(SUA_IEI_ASP_CAPA, 16#0109).
91-define(SUA_IEI_CREDIT, 16#010A).
92-define(SUA_IEI_DATA, 16#010B).
93-define(SUA_IEI_USER_CAUSE, 16#010C).
94-define(SUA_IEI_NET_APPEARANCE, 16#010D).
95-define(SUA_IEI_ROUTING_KEY, 16#010E).
96-define(SUA_IEI_DRN, 16#010F).
97-define(SUA_IEI_TID, 16#0110).
98-define(SUA_IEI_SMI, 16#0112).
99-define(SUA_IEI_IMPORTANCE, 16#0113).
100-define(SUA_IEI_MSG_PRIO, 16#0114).
101-define(SUA_IEI_PROTO_CLASS, 16#0115).
102-define(SUA_IEI_SEQ_CTRL, 16#0116).
103-define(SUA_IEI_SEGMENTATION, 16#0117).
104-define(SUA_IEI_CONG_LEVEL, 16#0118).
105
106-define(SUA_IEI_GT, 16#8001).
107-define(SUA_IEI_PC, 16#8002).
108-define(SUA_IEI_SSN, 16#8003).
109-define(SUA_IEI_IPv4, 16#8004).
110-define(SUA_IEI_HOST, 16#8005).
111-define(SUA_IEI_IPv6, 16#8006).
112
Harald Welte50dfc192012-01-17 15:11:37 +0100113-define(SUA_RI_GT, 1).
114-define(SUA_RI_SSN_PC, 2).
115-define(SUA_RI_HOST, 3).
116-define(SUA_RI_SSN_IP, 4).