FreeCalypso > hg > fc-selenite
comparison cdg-hybrid/msg/sms.mdf @ 9:6da1d56a96a3
cdg-hybrid: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 21:08:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
8:ed162c9cd29f | 9:6da1d56a96a3 |
---|---|
1 ;******************************************************************************** | |
2 ;*** File : sms.mdf | |
3 ;*** Creation : Thu Jun 19 15:32:13 CST 2008 | |
4 ;*** XSLT Processor : Apache Software Foundation / http://xml.apache.org/xalan-j / supports XSLT-Ver: 1 | |
5 ;*** Copyright : (c) Texas Instruments AG, Berlin Germany 2002 | |
6 ;******************************************************************************** | |
7 ;*** Document Type : Air Interface Message Specification | |
8 ;*** Document Name : sms | |
9 ;*** Document No. : 6147.607.97.102 | |
10 ;*** Document Date : 2001-09-11 | |
11 ;*** Document Status: BEING_PROCESSED | |
12 ;*** Document Author: FK | |
13 ;******************************************************************************** | |
14 | |
15 | |
16 | |
17 PRAGMA SRC_FILE_TIME "Wed Nov 28 10:21:18 2007" | |
18 PRAGMA LAST_MODIFIED "2001-09-11" | |
19 PRAGMA ID_AND_VERSION "6147.607.97.102" | |
20 | |
21 | |
22 | |
23 CONST SIM_PDU_BIT_LEN 1400 ; Bit length of SIM-PDU (record length of EF(SMS) minus Status Byte) | |
24 CONST TPDU_BIT_LEN 1312 ; Bit length of a SMS-TPDU (164 * 8) | |
25 CONST MAX_SMS_ADDR_DIG 20 ; Maximum number of address digits | |
26 CONST MAX_SMS_SGL_CHAR 160 ; Maximum number of characters (septets) in a single Short Message | |
27 CONST MAX_SMS_DATA_LEN 160 ; Maximum length of a data field | |
28 | |
29 | |
30 | |
31 VALTAB VAL_cp_cause | |
32 VAL 17 SMS_CP_CS_NETWORK_FAILURE "Network Failure" | |
33 VAL 22 SMS_CP_CS_CONGESTION "Congestion" | |
34 VAL 81 SMS_CP_CS_INVALID_TI "Invalid Transaction Identifier" | |
35 VAL 95 SMS_CP_CS_SEM_INC_MSG "Semantically incorrect message" | |
36 VAL 96 SMS_CP_CS_INV_MAND_INFO "Invalid mandatory information" | |
37 VAL 97 SMS_CP_CS_MSG_TYPE_NON_EXIST "Message type non-existent or not implemented" | |
38 VAL 98 SMS_CP_CS_MSG_NOT_COMP "Message not compatible with the short message protocol state" | |
39 VAL 99 SMS_CP_CS_INFO_NON_EXIST "Information element non-existent or not implemented" | |
40 VAL 111 SMS_CP_CS_PROTOCOL_ERROR "Protocol error, unspecified" | |
41 | |
42 VALTAB VAL_rp_mti | |
43 VAL 0 RP_DATA_UL "RP_DATA message MS to network" | |
44 VAL 1 RP_DATA_DL "RP_DATA message network to MS" | |
45 VAL 2 RP_ACK_UL "RP_ACK message MS to network" | |
46 VAL 3 RP_ACK_DL "RP_ACK message network to MS" | |
47 VAL 4 RP_ERROR_UL "RP_ERROR message MS to network" | |
48 VAL 5 RP_ERROR_DL "RP_ERROR message network to MS" | |
49 VAL 6 RP_SMMA_UL "RP_SMMA message MS to network" | |
50 | |
51 VALTAB VAL_npi | |
52 VAL DEF "reserved" | |
53 VAL 0 SMS_NPI_UNKNOWN "unknown" | |
54 VAL 1 SMS_NPI_ISDN "ISDN/telephony numbering plan (Rec. E.164/E.163)" | |
55 VAL 3 SMS_NPI_X121 "data numbering plan (Recommendation X.121)" | |
56 VAL 4 SMS_NPI_F69 "telex numbering plan (Recommendation F.69)" | |
57 VAL 8 SMS_NPI_NATIONAL "national numbering plan" | |
58 VAL 9 SMS_NPI_PRIVATE "private numbering plan" | |
59 VAL 10 SMS_NPI_ERMES "ERMES numbering plan (ETSI DE/PS 3 01-3)" | |
60 VAL 15 SMS_NPI_EXTENSTION "reserved for extension" | |
61 | |
62 VALTAB VAL_ton | |
63 VAL 0 SMS_TON_UNKNOWN "unknown" | |
64 VAL 1 SMS_TON_INTERNATIONAL "international number" | |
65 VAL 2 SMS_TON_NATIONAL "national number" | |
66 VAL 3 SMS_TON_NETWORK_SPEC "network specific number" | |
67 VAL 4 SMS_TON_SUBSCRIBER "dedicated access, short code" | |
68 VAL 5 SMS_TON_ALPHANUMERIC "alphanumeric" | |
69 VAL 6 SMS_TON_ABBREVIATED "abbreviated" | |
70 VAL 7 SMS_TON_EXTENSION "reserved for extention" | |
71 | |
72 VALTAB VAL_rp_cause_value | |
73 VAL 1 SMS_RP_CS_UNASSIGNED_NUMBER "Unassigned (unallocated) number" | |
74 VAL 8 SMS_RP_CS_OPERATOR_DET_BARRED "Operator determined barring" | |
75 VAL 10 SMS_RP_CS_CALL_BARRED "Call barred" | |
76 VAL 21 SMS_RP_CS_SM_TRANSFER_REJECTED "Short message transfer rejected" | |
77 VAL 22 SMS_RP_CS_MEM_CAP_EXCEEDED "Memory Capacity exceeded" | |
78 VAL 27 SMS_RP_CS_DEST_OUT_OF_ORDER "Destination out of order" | |
79 VAL 28 SMS_RP_CS_UNIDENT_SUBSCRIBER "Unidentified subscriber" | |
80 VAL 29 SMS_RP_CS_FACILITY_REJECTED "Facility rejected" | |
81 VAL 30 SMS_RP_CS_UNKNOWN_SUBSCRIBER "Unknown subscriber" | |
82 VAL 38 SMS_RP_CS_NET_OUT_OF_ORDER "Network out of order" | |
83 VAL 41 SMS_RP_CS_TEMP_FAILURE "Temporary Failure" | |
84 VAL 42 SMS_RP_CS_CONGESTION "Congestion" | |
85 VAL 47 SMS_RP_CS_NO_RESOURCES "Resources unavailable, unspecified" | |
86 VAL 50 SMS_RP_CS_FAC_NOT_SUBSCRIBED "Requested facility not subscribed" | |
87 VAL 69 SMS_RP_CS_FAC_NOT_IMPL "Requested facility not implemented" | |
88 VAL 81 SMS_RP_CS_INV_SM_TR_REF_VAL "Invalid short message transfer reference value" | |
89 VAL 95 SMS_RP_CS_SEM_INC_MSG "Semantically incorrect message" | |
90 VAL 96 SMS_RP_CS_INV_MAND_INFO "Invalid mandatory information" | |
91 VAL 97 SMS_RP_CS_MSG_NON_EXIST "Message type non-existent or not implemented" | |
92 VAL 98 SMS_RP_CS_MSG_NOT_COMP "Message not compatible with the short message protocol state" | |
93 VAL 99 SMS_RP_CS_INFO_NON_EXIST "Information element non-existent or not implemented" | |
94 VAL 111 SMS_RP_CS_PROTOCOL_ERROR "Protocol error, unspecified" | |
95 VAL 127 SMS_RP_CS_INTERWORKING "Interworking, unspecified" | |
96 | |
97 VALTAB VAL_tp_ct | |
98 VAL 0x00 SMS_CT_ENQUIRY "Enquiry to submitted short message" | |
99 VAL 0x01 SMS_CT_CANCEL_REP "Cancel status report request" | |
100 VAL 0x02 SMS_CT_DELETE "Delete short message" | |
101 VAL 0x03 SMS_CT_ENABLE "Enable status report request" | |
102 | |
103 VALTAB VAL_tp_dcs | |
104 VAL 0x00 SMS_DCS_GRP_DEF "Coding group: uncompressed, no message class" | |
105 VAL 0x10 SMS_DCS_GRP_CLASS "Coding group: uncompressed, with message class" | |
106 VAL 0x20 SMS_DCS_GRP_COMPR "Coding group: compressed, no message class" | |
107 VAL 0x30 SMS_DCS_GRP_CLASS_COMPR "Coding group: compressed, with message class" | |
108 VAL 0xC0 SMS_DCS_GRP_MW_DISCD "Coding group: message waiting, discard" | |
109 VAL 0xD0 SMS_DCS_GRP_MW_STORE "Coding group: message waiting, store" | |
110 VAL 0xE0 SMS_DCS_GRP_MW_STORE_UCS2 "Coding group: message waiting, store, UCS2 coded" | |
111 VAL 0xF0 SMS_DCS_DATA_CLASS "Coding group: data coding, with message class" | |
112 | |
113 VALTAB VAL_tp_fcs | |
114 VAL 0x80 SMS_FCS_TM_IW_NOT_SUP "Telematic interworking not supported (MO)" | |
115 VAL 0x81 SMS_FCS_SM_0_NOT_SUP "Short Message Type 0 not supported (MO, MT)" | |
116 VAL 0x82 SMS_FCS_CANT_REP_SM "Cannot replace short message (MO, MT)" | |
117 VAL 0x8F SMS_FCS_TP_PID_UNSPEC "Unspecified TP-PID error (MO, MT)" | |
118 VAL 0x90 SMS_FCS_DCS_NOT_SUP "Data coding scheme (alphabet) not supported (MO)" | |
119 VAL 0x91 SMS_FCS_CLASS_NOT_SUP "Message class not supported (MT)" | |
120 VAL 0x9F SMS_FCS_TP_DCS_UNSPEC "Unspecified TP-DCS error (MO, MT)" | |
121 VAL 0xA0 SMS_FCS_CMD_CANT_ACT "Command cannot be actioned (MO)" | |
122 VAL 0xA1 SMS_FCS_CMD_NOT_SUP "Command unsupported (MO)" | |
123 VAL 0xAF SMS_FCS_TP_CMD_UNSPEC "Unspecified TP-Command error (MO)" | |
124 VAL 0xB0 SMS_FCS_TPDU_NOT_SUP "TPDU not supported (MO, MT)" | |
125 VAL 0xC0 SMS_FCS_SC_BUSY "SC busy (MO)" | |
126 VAL 0xC1 SMS_FCS_NO_SC_SUBSCRIPT "No SC subscription (MO)" | |
127 VAL 0xC2 SMS_FCS_SC_SYS_FAIL "SC system failure (MO)" | |
128 VAL 0xC3 SMS_FCS_INV_SME_ADDR "Invalid SME address (MO)" | |
129 VAL 0xC4 SMS_FCS_DEST_SME_BARRED "Destination SME barred (MO)" | |
130 VAL 0xC5 SMS_FCS_REJ_DUPL_SM "SM rejected-duplicate SM (MO)" | |
131 VAL 0xC6 SMS_FCS_TPVPF_NOT_SUP "Validity Period Format not supported (MO)" | |
132 VAL 0xC7 SMS_FCS_TPVP_NOT_SUP "Validity Period not supported (MO)" | |
133 VAL 0xD0 SMS_FCS_SIM_MEM_FULL "SIM SMS storage full (MT)" | |
134 VAL 0xD1 SMS_FCS_NO_SMS_MEM_IN_MS "No SMS storage capability in SIM (MT)" | |
135 VAL 0xD2 SMS_FCS_ERROR_IN_MS "Error in MS (MT)" | |
136 VAL 0xD3 SMS_FCS_MEM_CAP_EXCEED "Memory Capacity exceeded (MO, MT)" | |
137 VAL 0xD4 SMS_FCS_SAT_BUSY "SIM Application Toolkit busy (MT)" | |
138 VAL 0xD5 SMS_FCS_SAT_DNL_ERROR "SIM Data Download error (MT)" | |
139 VAL 0xFF SMS_FCS_UNSPECIFIED "Unspecified error cause (MO, MT)" | |
140 | |
141 VALTAB VAL_tp_mti | |
142 VAL 0 SMS_DELIVER "SMS deliver (SC to MS)" | |
143 VAL 0 SMS_DELIVER_REPORT "SMS deliver report (MS to SC)" | |
144 VAL 2 SMS_STATUS_REPORT "SMS status report (SC to MS)" | |
145 VAL 2 SMS_COMMAND "SMS command (MS to SC)" | |
146 VAL 1 SMS_SUBMIT "SMS submit (MS to SC)" | |
147 VAL 1 SMS_SUBMIT_REPORT "SMS submit report (SC to MS)" | |
148 VAL 4 SMS_DELIVER_CONCAT "SMS deliver concat (SC to MS)" | |
149 | |
150 VALTAB VAL_tp_mms | |
151 VAL 0 SMS_MMS_MORE_MESSAGES "More messages are waiting for the MS in this SC" | |
152 VAL 1 SMS_MMS_NO_MORE_MESSAGES "No more messages are waiting for the MS in this SC" | |
153 | |
154 VALTAB VAL_tp_pid | |
155 VAL 0x00 SMS_PID_DEFAULT "" | |
156 VAL 0x40 SMS_PID_SM_TYPE_0 "Short Message Type 0" | |
157 VAL 0x41 SMS_PID_REP_SM_TYPE_1 "Replace Short Message Type 1" | |
158 VAL 0x42 SMS_PID_REP_SM_TYPE_2 "Replace Short Message Type 2" | |
159 VAL 0x43 SMS_PID_REP_SM_TYPE_3 "Replace Short Message Type 3" | |
160 VAL 0x44 SMS_PID_REP_SM_TYPE_4 "Replace Short Message Type 4" | |
161 VAL 0x45 SMS_PID_REP_SM_TYPE_5 "Replace Short Message Type 5" | |
162 VAL 0x46 SMS_PID_REP_SM_TYPE_6 "Replace Short Message Type 6" | |
163 VAL 0x47 SMS_PID_REP_SM_TYPE_7 "Replace Short Message Type 7" | |
164 VAL 0x5F SMS_PID_RET_CALL_MSG "Return Call Message" | |
165 VAL 0x7C SMS_PID_ANSI_136_R_DATA %REL99% "ANSI-136 Data" | |
166 VAL 0x7D SMS_PID_ME_DOWNLOAD "ME Data Download" | |
167 VAL 0x7E SMS_PID_ME_DEPERSON "ME Depersonalization SM" | |
168 VAL 0x7F SMS_PID_SIM_DOWNLOAD "SIM Data Download" | |
169 | |
170 VALTAB VAL_tp_rd | |
171 VAL 0 SMS_RD_ACCEPT "Accept duplicated SMS submit" | |
172 VAL 1 SMS_RD_REJECT "Reject duplicated SMS submit" | |
173 | |
174 VALTAB VAL_tp_rp | |
175 VAL 0 SMS_RP_NOT_SET "TP Reply Path parameter is not set" | |
176 VAL 1 SMS_RP_SET "TP Reply Path parameter is set" | |
177 | |
178 VALTAB VAL_tp_st | |
179 VAL 0x00 SMS_ST_SM_REC_BY_SME "Short message received by the SME" | |
180 VAL 0x01 SMS_ST_SM_FORW_SC "Short message forwarded by the SC, not confirmed" | |
181 VAL 0x02 SMS_ST_SM_REP_BY_SC "Short message replaced by the SC" | |
182 VAL 0x20 SMS_ST_CONGESTION "Congestion (T)" | |
183 VAL 0x21 SMS_ST_SMS_BUSY "SME is busy (T)" | |
184 VAL 0x22 SMS_ST_NO_RESPONSE "No response from the SME (T)" | |
185 VAL 0x23 SMS_ST_SERV_REJ "Service rejected (T)" | |
186 VAL 0x24 SMS_ST_QUAL_NOT_AVAIL "Quality of service not available (T)" | |
187 VAL 0x25 SMS_ST_ERR_IN_SME "Error in SME (T)" | |
188 VAL 0x40 SMS_ST_REM_PROC_ERR "Remote procedure error (P)" | |
189 VAL 0x41 SMS_ST_INCOMP_DEST "Incompatible destination (P)" | |
190 VAL 0x42 SMS_ST_CON_REJ_BY_SME "Connection rejected by SME (P)" | |
191 VAL 0x43 SMS_ST_NOT_OBTAINABLE "Not obtainable (P)" | |
192 VAL 0x44 SMS_ST_QUAL_NOT_AVAIL_P "Quality of service not available (P)" | |
193 VAL 0x45 SMS_ST_NO_INTERWORK "No interworking available (P)" | |
194 VAL 0x46 SMS_ST_SM_VP_EXP "Short message validity period expired (P)" | |
195 VAL 0x47 SMS_ST_SM_DEL_BY_SME "Short message deleted by originating SME (P)" | |
196 VAL 0x48 SMS_ST_SM_DEL_BY_SC "Short message deleted by SC administration (P)" | |
197 VAL 0x49 SMS_ST_SM_NOT_EXIST "Short message not exists (P)" | |
198 VAL 0x60 SMS_ST_CONGESTION2 "Congestion (P)" | |
199 VAL 0x61 SMS_ST_SMS_BUSY2 "SME is busy (P)" | |
200 VAL 0x62 SMS_ST_NO_RESPONSE2 "No response from the SME (P)" | |
201 VAL 0x63 SMS_ST_SERV_REJ2 "Service rejected (P)" | |
202 VAL 0x64 SMS_ST_QUAL_NOT_AVAIL2 "Quality of service not available (P)" | |
203 VAL 0x65 SMS_ST_ERR_IN_SME2 "Error in SME (P)" | |
204 | |
205 VALTAB VAL_tp_sri | |
206 VAL 0 SMS_SRI_NO_RETURN "A status report will not be returned to the SME" | |
207 VAL 1 SMS_SRI_RETURN "A status report will be returned to the SME" | |
208 | |
209 VALTAB VAL_tp_srr | |
210 VAL 0 SMS_SRR_NOT_REQUESTED "A status report is not requested" | |
211 VAL 1 SMS_SRR_REQUESTED "A status report is requested" | |
212 | |
213 VALTAB VAL_tp_srq | |
214 VAL 0 SMS_SRQ_SUBMIT "The SMS status report is the result of a SMS submit" | |
215 VAL 1 SMS_SRQ_COMMAND "The SMS status report is the result of a SMS command or enquiry" | |
216 | |
217 VALTAB VAL_tp_udhi | |
218 VAL 0 SMS_UDHI_NOT_INCLUDED "No user data header included" | |
219 VAL 1 SMS_UDHI_INCLUDED "User data header included" | |
220 | |
221 VALTAB VAL_tp_vpf | |
222 VAL 0 SMS_VPF_NOT_PRESENT "TP-VP field not present" | |
223 VAL 1 SMS_VPF_ENHANCED "TP-VP field present in enhanced format" | |
224 VAL 2 SMS_VPF_RELATIVE "TP-VP field present and integer represented (relative)" | |
225 VAL 3 SMS_VPF_ABSOLUTE "TP-VP field present and semi-octet represented (absolute)" | |
226 | |
227 VALTAB VAL_tp_udl_p | |
228 VAL 0 SMS_UD_NOT_INCLUDED "No user data included" | |
229 VAL 1 SMS_UD_INCLUDED "User data included" | |
230 | |
231 VALTAB VAL_tp_dcs_p | |
232 VAL 0 SMS_DCS_NOT_INCLUDED "No data coding scheme included" | |
233 VAL 1 SMS_DCS_INCLUDED "Data coding scheme included" | |
234 | |
235 VALTAB VAL_tp_pid_p | |
236 VAL 0 SMS_PID_NOT_INCLUDED "No protocol identifier included" | |
237 VAL 1 SMS_PID_INCLUDED "Protocol identifier included" | |
238 | |
239 VALTAB VAL_tp_vt_mti | |
240 VAL 0x20 SMS_VT_DLVR_REP_ACK "TP SMS-DELIVER-REPORT in RP_ACK message, MS to network" | |
241 VAL 0x21 SMS_VT_SUBMIT "TP SMS-SUBMIT in RP_DATA message, MS to network" | |
242 VAL 0x22 SMS_VT_COMMAND "TP SMS-COMMAND in RP_DATA message, MS to network" | |
243 VAL 0x24 SMS_VT_DLVR_REP_ERR "TP SMS-DELIVER-REPORT in RP_ERROR message, MS to network" | |
244 VAL 0x28 SMS_VT_DELIVER "TP SMS-DELIVER in RP_DATA message, network to MS" | |
245 VAL 0x29 SMS_VT_SBMT_REP_ACK "TP SMS-SUBMIT-REPORT in RP_ACK message, network to MS" | |
246 VAL 0x2A SMS_VT_STATUS "TP SMS-STATUS-REPORT in RP-DATA or RP_ACK message, network to MS" | |
247 VAL 0x2B SMS_VT_SBMT_REP_ERR "TP SMS-SUBMIT-REPORT in RP_ERROR message, network to MS" | |
248 VAL 0x30 SMS_VT_SIM_PDU "Virtual message type for SIM-PDU used in SAP MNSMS" | |
249 | |
250 VALTAB VAL_tvpf | |
251 VAL 0 SMS_TVPF_NOT_PRESENT "Enhanced validity period not present" | |
252 VAL 1 SMS_TVPF_RELATIVE "Enhanced validity period relative as TP-VP (relative)" | |
253 VAL 2 SMS_TVPF_SECONDS "Enhanced validity period given in seconds 1 .. 255" | |
254 VAL 3 SMS_TVPF_HOURS "Enhanced validity period given in hours, minutes, seconds" | |
255 | |
256 VALTAB VAL_tp_ext | |
257 VAL 0 SMS_EXT_NOT_INCLUDED "No extension octet following" | |
258 VAL 1 SMS_EXT_INCLUDED "Extension octet following" | |
259 | |
260 VALTAB VAL_tp_ss | |
261 VAL 0 SMS_SS_NOT_SET "Single Shot bit not set" | |
262 VAL 1 SMS_SS_SET "Single Shot bit set" | |
263 | |
264 | |
265 | |
266 | |
267 VAR cp_cause "CP cause" | |
268 8 | |
269 | |
270 VAL @m_sms - VAL_cp_cause@ | |
271 | |
272 VAR msg_type "CP Message Type" | |
273 8 | |
274 | |
275 | |
276 VAR data "Data" | |
277 8 | |
278 | |
279 | |
280 VAR diag "Diagnostic field" | |
281 8 | |
282 | |
283 | |
284 VAR reference "Message Reference" | |
285 8 | |
286 | |
287 | |
288 VAR rp_mti "Message Type Indicator" | |
289 3 | |
290 | |
291 VAL @m_sms - VAL_rp_mti@ | |
292 | |
293 VAR num "Number digit" | |
294 4 | |
295 | |
296 | |
297 VAR year "" | |
298 4 | |
299 | |
300 | |
301 VAR month "" | |
302 4 | |
303 | |
304 | |
305 VAR day "" | |
306 4 | |
307 | |
308 | |
309 VAR hour "" | |
310 4 | |
311 | |
312 | |
313 VAR minute "" | |
314 4 | |
315 | |
316 | |
317 VAR second "" | |
318 4 | |
319 | |
320 | |
321 VAR npi "Numbering plan identification" | |
322 4 | |
323 | |
324 VAL @m_sms - VAL_npi@ | |
325 | |
326 VAR ton "Type of number" | |
327 3 | |
328 | |
329 VAL @m_sms - VAL_ton@ | |
330 | |
331 VAR rp_cause_value "RP cause" | |
332 7 | |
333 | |
334 VAL @m_sms - VAL_rp_cause_value@ | |
335 | |
336 VAR tz_lsb "Time Zone, LSB" | |
337 4 | |
338 | |
339 | |
340 VAR tz_sign "Time Zone, sign" | |
341 1 | |
342 | |
343 | |
344 VAR tz_msb "Time Zone, MSB" | |
345 3 | |
346 | |
347 | |
348 VAR tp_ct "TP Command Type" | |
349 8 | |
350 | |
351 VAL @m_sms - VAL_tp_ct@ | |
352 | |
353 VAR tp_dcs "TP Data Coding Scheme" | |
354 8 | |
355 | |
356 VAL @m_sms - VAL_tp_dcs@ | |
357 | |
358 VAR tp_fcs "TP Failure Cause" | |
359 8 | |
360 | |
361 VAL @m_sms - VAL_tp_fcs@ | |
362 | |
363 VAR tp_mn "TP Message Number" | |
364 8 | |
365 | |
366 | |
367 VAR tp_mr "TP Message Reference" | |
368 8 | |
369 | |
370 | |
371 VAR tp_mti "TP Message Type Indicator" | |
372 2 | |
373 | |
374 VAL @m_sms - VAL_tp_mti@ | |
375 | |
376 VAR tp_mms "TP More Messages To Send" | |
377 1 | |
378 | |
379 VAL @m_sms - VAL_tp_mms@ | |
380 | |
381 VAR tp_pid "TP Protocol Identifier" | |
382 8 | |
383 | |
384 VAL @m_sms - VAL_tp_pid@ | |
385 | |
386 VAR tp_rd "TP Reject Duplicates" | |
387 1 | |
388 | |
389 VAL @m_sms - VAL_tp_rd@ | |
390 | |
391 VAR tp_rp "TP Reply Path" | |
392 1 | |
393 | |
394 VAL @m_sms - VAL_tp_rp@ | |
395 | |
396 VAR tp_st "TP Status" | |
397 8 | |
398 | |
399 VAL @m_sms - VAL_tp_st@ | |
400 | |
401 VAR tp_sri "TP Status Report Indication" | |
402 1 | |
403 | |
404 VAL @m_sms - VAL_tp_sri@ | |
405 | |
406 VAR tp_srr "TP Status Report Request" | |
407 1 | |
408 | |
409 VAL @m_sms - VAL_tp_srr@ | |
410 | |
411 VAR tp_srq "TP Status Report Qualifier" | |
412 1 | |
413 | |
414 VAL @m_sms - VAL_tp_srq@ | |
415 | |
416 VAR tp_udhi "TP User Data Header Indicator" | |
417 1 | |
418 | |
419 VAL @m_sms - VAL_tp_udhi@ | |
420 | |
421 VAR tp_vpf "TP Validity Period Format" | |
422 2 | |
423 | |
424 VAL @m_sms - VAL_tp_vpf@ | |
425 | |
426 VAR tp_vp_rel "TP Validity Period Relative" | |
427 8 | |
428 | |
429 | |
430 VAR tp_udl_p "TP User Data present" | |
431 1 | |
432 | |
433 VAL @m_sms - VAL_tp_udl_p@ | |
434 | |
435 VAR tp_dcs_p "TP User Data Header Indicator" | |
436 1 | |
437 | |
438 VAL @m_sms - VAL_tp_dcs_p@ | |
439 | |
440 VAR tp_pid_p "TP User Data Header Indicator" | |
441 1 | |
442 | |
443 VAL @m_sms - VAL_tp_pid_p@ | |
444 | |
445 VAR length "Length" | |
446 8 | |
447 | |
448 | |
449 VAR digits "Digits" | |
450 8 | |
451 | |
452 | |
453 VAR tp_vt_mti "Virtual TP Message Type" | |
454 8 | |
455 | |
456 VAL @m_sms - VAL_tp_vt_mti@ | |
457 | |
458 VAR tpdu "TP Data Unit" | |
459 TPDU_BIT_LEN | |
460 | |
461 | |
462 VAR tvpf "Type of Validity Period Format" | |
463 3 | |
464 | |
465 VAL @m_sms - VAL_tvpf@ | |
466 | |
467 VAR tp_vp_sec "Validity period in seconds" | |
468 8 | |
469 | |
470 | |
471 VAR tp_rsrvd "Extension Octet" | |
472 7 | |
473 | |
474 | |
475 VAR tp_ext "Extension Control Bit" | |
476 1 | |
477 | |
478 VAL @m_sms - VAL_tp_ext@ | |
479 | |
480 VAR tp_ss "Single Shot Bit" | |
481 1 | |
482 | |
483 VAL @m_sms - VAL_tp_ss@ | |
484 | |
485 | |
486 | |
487 | |
488 COMP rp_cause "RP Cause" | |
489 { | |
490 + rp_cause_value ; cause value | |
491 diag [0..5] ; diagnostic field | |
492 } | |
493 | |
494 | |
495 | |
496 COMP rp_addr "RP Service Center Address" | |
497 { | |
498 + ton ; Type of number | |
499 * npi ; Numbering plan identification | |
500 BCDEVEN num [0..MAX_SMS_ADDR_DIG] ; Number digit | |
501 } | |
502 | |
503 | |
504 | |
505 COMP rp_user_data "RP-User Data" | |
506 { | |
507 tp_mti (GETPOS,:,6,+,SETPOS) ; TP Message Type Indicator | |
508 GSM5_V tpdu (SETPOS) ; TP Data Unit | |
509 } | |
510 | |
511 | |
512 | |
513 COMP rp_ack "RP-ACK downlink / uplink" | |
514 { | |
515 GSM4_TLV rp_user_data 0x41 ; RP Ack Data | |
516 } | |
517 | |
518 | |
519 | |
520 COMP rp_error "RP-ERROR downlink / uplink" | |
521 { | |
522 GSM4_LV rp_cause ; RP Cause | |
523 GSM4_TLV rp_user_data 0x41 ; RP Error Data Downlink | |
524 } | |
525 | |
526 | |
527 | |
528 COMP rp_data_dl "RP Data downlink" | |
529 { | |
530 GSM4_LV rp_addr ; RP Originator Address | |
531 .00000000 ; RP Destination Address | |
532 GSM4_LV rp_user_data ; RP User Data Downlink | |
533 } | |
534 | |
535 | |
536 | |
537 COMP cp_user_data_dl "CP User Data downlink" | |
538 { | |
539 .00000 ; spare | |
540 rp_mti ; Message Type Indicator | |
541 reference ; Message Reference | |
542 < (rp_mti = RP_DATA_DL) GSM3_V rp_data_dl > ; RP-DATA Downlink | |
543 < (rp_mti = RP_ERROR_DL) GSM3_V rp_error > ; RP-ERROR Downlink | |
544 < (rp_mti = RP_ACK_DL) GSM3_V rp_ack > ; RP-ACK-Downlink | |
545 } | |
546 | |
547 | |
548 | |
549 COMP rp_data_ul "RP Data uplink" | |
550 { | |
551 .00000000 ; RP Originator Address | |
552 GSM4_LV rp_addr ; RP Destination Address | |
553 GSM4_LV rp_user_data ; RP User Data Uplink | |
554 } | |
555 | |
556 | |
557 | |
558 COMP cp_user_data_ul "CP User Data Uplink" | |
559 { | |
560 .00000 ; spare | |
561 rp_mti ; Message Type Indicator | |
562 reference ; Message Reference | |
563 < (rp_mti = RP_DATA_UL) GSM3_V rp_data_ul > ; RP-DATA Uplink | |
564 < (rp_mti = RP_ERROR_UL) GSM3_V rp_error > ; RP-ERROR Uplink | |
565 < (rp_mti = RP_ACK_UL) GSM3_V rp_ack > ; RP-ACK-Uplink | |
566 } | |
567 | |
568 | |
569 | |
570 COMP tp_cd "TP Command Data" | |
571 { | |
572 data [0..MAX_SMS_DATA_LEN] ; Data | |
573 } | |
574 TYPEDEF COMP tp_cd tp_udh "TP User Data Header" | |
575 | |
576 | |
577 | |
578 COMP tp_da "TP Destination Address" | |
579 { | |
580 digits ; Number of digits | |
581 .1 ; spare | |
582 ton ; Type of number | |
583 npi ; Numbering plan identification | |
584 BCDEVEN num [digits..MAX_SMS_ADDR_DIG] ; Number digit | |
585 } | |
586 TYPEDEF COMP tp_da tp_oa "TP Originating Address" | |
587 TYPEDEF COMP tp_da tp_ra "TP Recipient Address" | |
588 | |
589 | |
590 | |
591 COMP tp_vp_abs "TP Validity Period (Absolute Format)" | |
592 { | |
593 BCDEVEN year [2] ; Year | |
594 BCDEVEN month [2] ; Month | |
595 BCDEVEN day [2] ; Day | |
596 BCDEVEN hour [2] ; Hour | |
597 BCDEVEN minute [2] ; Minute | |
598 BCDEVEN second [2] ; Second | |
599 tz_lsb ; Time Zone, LSB | |
600 tz_sign ; Time Zone, sign | |
601 tz_msb ; Time Zone, MSB | |
602 } | |
603 TYPEDEF COMP tp_vp_abs tp_scts "TP Service Centre Time Stamp" | |
604 TYPEDEF COMP tp_vp_abs tp_dt "TP Discharge Time" | |
605 | |
606 | |
607 | |
608 COMP tp_vp_enh "TP Validity Period (Enhanced Format)" | |
609 { | |
610 tp_ext ; Extension Control Bit | |
611 tp_ss ; Single Shot Bit | |
612 .000 ; spare | |
613 tvpf ; Type of Validity Period Format | |
614 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare | |
615 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet | |
616 < (tvpf = SMS_TVPF_RELATIVE) tp_vp_rel > ; TP Validity Period Relative | |
617 < (tvpf = SMS_TVPF_SECONDS) tp_vp_sec > ; Validity period in seconds | |
618 < (tvpf = SMS_TVPF_HOURS) BCDEVEN hour [2] > ; Hour | |
619 < (tvpf = SMS_TVPF_HOURS) BCDEVEN minute [2] > ; Minute | |
620 < (tvpf = SMS_TVPF_HOURS) BCDEVEN second [2] > ; Second | |
621 < (tp_ext = SMS_EXT_NOT_INCLUDED) .00000000 > ; spare | |
622 < (tvpf = SMS_TVPF_RELATIVE OR tvpf = SMS_TVPF_SECONDS) .00000000 > ; spare | |
623 < (tvpf = SMS_TVPF_RELATIVE OR tvpf = SMS_TVPF_SECONDS) .00000000 > ; spare | |
624 .00000000 ; spare | |
625 .00000000 ; spare | |
626 } | |
627 | |
628 | |
629 | |
630 COMP tp_ud "TP User Data" | |
631 { | |
632 length ; Length | |
633 data [0..MAX_SMS_DATA_LEN] ; Data | |
634 } | |
635 | |
636 | |
637 | |
638 COMP tp_udh_inc "TP User Data with Header" | |
639 { | |
640 length ; Length | |
641 GSM4_LV tp_udh ; TP User Data Header | |
642 data [0..MAX_SMS_DATA_LEN] ; Data | |
643 } | |
644 | |
645 | |
646 | |
647 COMP tp_cdh_inc "TP Command Data with Header" | |
648 { | |
649 GSM4_LV tp_udh ; TP User Data Header | |
650 data [0..MAX_SMS_DATA_LEN] ; Data | |
651 } | |
652 | |
653 | |
654 | |
655 | |
656 | |
657 | |
658 MSG b_cp_ack both 0b00000100 ; CP Ack | |
659 { | |
660 GSM3_V msg_type ; CP Message Type | |
661 } | |
662 | |
663 | |
664 | |
665 MSG d_cp_data downlink 0b00000001 ; CP Data Downlink | |
666 { | |
667 GSM3_V msg_type ; CP Message Type | |
668 GSM4_LV cp_user_data_dl ; CP User Data downlink | |
669 } | |
670 | |
671 | |
672 | |
673 MSG u_cp_data uplink 0b00000001 ; CP Data Uplink | |
674 { | |
675 GSM3_V msg_type ; CP Message Type | |
676 GSM4_LV cp_user_data_ul ; CP User Data uplink | |
677 } | |
678 | |
679 | |
680 | |
681 MSG b_cp_error both 0b00010000 ; CP Error | |
682 { | |
683 GSM3_V msg_type ; CP Message Type | |
684 GSM3_V cp_cause ; CP Cause | |
685 } | |
686 | |
687 | |
688 | |
689 MSG tp_deliver downlink SMS_VT_DELIVER ; TP SMS-DELIVER | |
690 { | |
691 GSM3_V tp_vt_mti ; Virtual Message Type | |
692 tp_rp ; TP Reply Path | |
693 tp_udhi ; TP User Data Header Indicator | |
694 tp_sri ; TP Status Report Indication | |
695 .00 ; spare | |
696 tp_mms ; TP More Message To Send | |
697 tp_mti ; TP Message Type Indicator | |
698 GSM3_V tp_oa ; TP Origination Address | |
699 tp_pid ; TP Protocol Identifier | |
700 tp_dcs ; TP Data Coding Scheme | |
701 GSM3_V tp_scts ; TP Service Center Time Stamp | |
702 < (tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data | |
703 < (tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included | |
704 } | |
705 | |
706 | |
707 | |
708 MSG tp_dlvr_rep_err uplink SMS_VT_DLVR_REP_ERR ; TP SMS-DELIVER-REPORT (RP-ERROR) | |
709 { | |
710 GSM3_V tp_vt_mti ; Virtual Message Type | |
711 .0 ; spare | |
712 tp_udhi ; TP User Data Header Indicator | |
713 .0000 ; spare | |
714 tp_mti ; TP Message Type Indicator | |
715 tp_fcs ; TP Failure Cause | |
716 tp_ext ; Extension Control Bit | |
717 .0000 ; spare | |
718 tp_udl_p ; TP User Data present | |
719 tp_dcs_p ; TP Data Coding Scheme present | |
720 tp_pid_p ; TP Protocol Identifier present | |
721 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare | |
722 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet | |
723 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier | |
724 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme | |
725 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data | |
726 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included | |
727 } | |
728 | |
729 | |
730 | |
731 MSG tp_dlvr_rep_ack uplink SMS_VT_DLVR_REP_ACK ; TP SMS-DELIVER-REPORT (RP-ACK) | |
732 { | |
733 GSM3_V tp_vt_mti ; Virtual Message Type | |
734 .0 ; spare | |
735 tp_udhi ; TP User Data Header Indicator | |
736 .0000 ; spare | |
737 tp_mti ; TP Message Type Indicator | |
738 tp_ext ; Extension Control Bit | |
739 .0000 ; spare | |
740 tp_udl_p ; TP User Data present | |
741 tp_dcs_p ; TP Data Coding Scheme present | |
742 tp_pid_p ; TP Protocol Identifier present | |
743 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare | |
744 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet | |
745 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier | |
746 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme | |
747 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data | |
748 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included | |
749 } | |
750 | |
751 | |
752 | |
753 MSG tp_submit uplink SMS_VT_SUBMIT ; TP SMS-SUBMIT | |
754 { | |
755 GSM3_V tp_vt_mti ; Virtual Message Type | |
756 tp_rp ; TP Reply Path | |
757 tp_udhi ; TP User Data Header Indicator | |
758 tp_srr ; TP Status Report Request | |
759 tp_vpf ; TP Validity Period Format | |
760 tp_rd ; TP Reject Duplicates | |
761 tp_mti ; TP Message Type Indicator | |
762 tp_mr ; TP Message Reference | |
763 GSM3_V tp_da ; TP Destination Address | |
764 tp_pid ; TP Protocol Identifier | |
765 tp_dcs ; TP Data Coding Scheme | |
766 < (tp_vpf = SMS_VPF_ENHANCED) GSM3_V tp_vp_enh > ; TP Validity Period (enhanced format) | |
767 < (tp_vpf = SMS_VPF_RELATIVE) tp_vp_rel > ; TP relative Validity Period | |
768 < (tp_vpf = SMS_VPF_ABSOLUTE) GSM3_V tp_vp_abs > ; TP absolute Validity Period | |
769 < (tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data | |
770 < (tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included | |
771 } | |
772 | |
773 | |
774 | |
775 MSG tp_sbmt_rep_err downlink SMS_VT_SBMT_REP_ERR ; TP SMS-SUBMIT-REPORT (RP-ERROR) | |
776 { | |
777 GSM3_V tp_vt_mti ; Virtual Message Type | |
778 .0 ; spare | |
779 tp_udhi ; TP User Data Header Indicator | |
780 .0000 ; spare | |
781 tp_mti ; TP Message Type Indicator | |
782 tp_fcs ; TP Failure Cause | |
783 tp_ext ; Extension Control Bit | |
784 .0000 ; spare | |
785 tp_udl_p ; TP User Data present | |
786 tp_dcs_p ; TP Data Coding Scheme present | |
787 tp_pid_p ; TP Protocol Identifier present | |
788 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare | |
789 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet | |
790 GSM3_V tp_scts ; TP Service Centre Time Stamp | |
791 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier | |
792 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme | |
793 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data | |
794 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included | |
795 } | |
796 | |
797 | |
798 | |
799 MSG tp_sbmt_rep_ack downlink SMS_VT_SBMT_REP_ACK ; TP SMS-SUBMIT-REPORT (RP-ACK) | |
800 { | |
801 GSM3_V tp_vt_mti ; Virtual Message Type | |
802 .0 ; spare | |
803 tp_udhi ; TP User Data Header Indicator | |
804 .0000 ; spare | |
805 tp_mti ; TP Message Type Indicator | |
806 tp_ext ; Extension Control Bit | |
807 .0000 ; spare | |
808 tp_udl_p ; TP User Data present | |
809 tp_dcs_p ; TP Data Coding Scheme present | |
810 tp_pid_p ; TP Protocol Identifier present | |
811 < (tp_ext = SMS_EXT_INCLUDED) .0 > ; spare | |
812 < (tp_ext = SMS_EXT_INCLUDED) tp_rsrvd > ; Extension Octet | |
813 GSM3_V tp_scts ; TP Service Centre Time Stamp | |
814 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier | |
815 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme | |
816 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data | |
817 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included | |
818 } | |
819 | |
820 | |
821 | |
822 MSG tp_status downlink SMS_VT_STATUS ; TP SMS-STATUS-REPORT | |
823 { | |
824 GSM3_V tp_vt_mti ; Virtual Message Type | |
825 .0 ; spare | |
826 tp_udhi ; TP User Data Header Indicator | |
827 tp_srq ; TP Status Report Qualifier | |
828 .00 ; spare | |
829 tp_mms ; TP More Message To Send | |
830 tp_mti ; TP Message Type Indicator | |
831 tp_mr ; TP Message Reference | |
832 GSM3_V tp_ra ; TP Recipient Address | |
833 GSM3_V tp_scts ; TP Service Centre Time Stamp | |
834 GSM3_V tp_dt ; TP Discharge Time | |
835 tp_st ; TP Status | |
836 + .0000 ; spare | |
837 tp_udl_p ; TP User Data present | |
838 tp_dcs_p ; TP Data Coding Scheme present | |
839 - tp_pid_p ; TP Protocol Identifier present | |
840 * tp_rsrvd ; Extension Octet | |
841 < (tp_pid_p = SMS_PID_INCLUDED) tp_pid > ; TP Protocol Identifier | |
842 < (tp_dcs_p = SMS_DCS_INCLUDED) tp_dcs > ; TP Data Coding Scheme | |
843 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM3_V tp_ud > ; TP User Data | |
844 < (tp_udl_p = SMS_UD_INCLUDED AND tp_udhi = SMS_UDHI_INCLUDED) GSM3_V tp_udh_inc > ; TP User Data with Header included | |
845 } | |
846 | |
847 | |
848 | |
849 MSG tp_command uplink SMS_VT_COMMAND ; TP SMS-COMMAND | |
850 { | |
851 GSM3_V tp_vt_mti ; Virtual Message Type | |
852 .0 ; spare | |
853 tp_udhi ; TP User Data Header Indicator | |
854 tp_srr ; TP Status Report Request | |
855 .000 ; spare | |
856 tp_mti ; TP Message Type Indicator | |
857 tp_mr ; TP Message Reference | |
858 tp_pid ; TP Protocol Identifier | |
859 tp_ct ; TP Command Type | |
860 tp_mn ; TP Message Number | |
861 GSM3_V tp_da ; TP Destination Address | |
862 < (tp_udhi = SMS_UDHI_NOT_INCLUDED) GSM4_LV tp_cd > ; TP Command Data | |
863 < (tp_udhi = SMS_UDHI_INCLUDED) GSM4_LV tp_cdh_inc > ; TP Command Data with Header included | |
864 } | |
865 | |
866 | |
867 | |
868 MSG sim_pdu both SMS_VT_SIM_PDU ; SMS SIM-PDU | |
869 { | |
870 GSM3_V tp_vt_mti ; Virtual Message Type | |
871 GSM4_LV rp_addr ; RP Service Center Address | |
872 tp_mti (GETPOS,:,6,+,SETPOS) ; TP Message Type Indicator | |
873 GSM5_V tpdu (SETPOS) ; TP Data Unit | |
874 } | |
875 | |
876 | |
877 | |
878 | |
879 | |
880 |