Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 1 | module MNCC_Types { |
| 2 | |
| 3 | import from Osmocom_Types all; |
| 4 | |
| 5 | /* for architectures where 'int' is 32bit like x86_64 */ |
| 6 | type integer int with { variant "FIELDLENGTH(32)" }; |
| 7 | |
| 8 | |
| 9 | /* GSM 04.08 Bearer Capability: Rate Adaption */ |
| 10 | type enumerated GSM48_bcap_ra { |
| 11 | GSM48_BCAP_RA_NONE (0), |
| 12 | GSM48_BCAP_RA_V110_X30 (1), |
| 13 | GSM48_BCAP_RA_X31 (2), |
| 14 | GSM48_BCAP_RA_OTHER (3) |
| 15 | }; |
| 16 | |
| 17 | /* GSM 04.08 Bearer Capability: Signalling access protocol */ |
| 18 | type enumerated GSM48_bcap_sig_access { |
Harald Welte | ec3d065 | 2018-01-22 02:54:13 +0100 | [diff] [blame] | 19 | GSM48_BCAP_SA_NONE (0), |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 20 | GSM48_BCAP_SA_I440_I450 (1), |
| 21 | GSM48_BCAP_SA_X21 (2), |
| 22 | GSM48_BCAP_SA_X28_DP_IN (3), |
| 23 | GSM48_BCAP_SA_X28_DP_UN (4), |
| 24 | GSM48_BCAP_SA_X28_NDP (5), |
| 25 | GSM48_BCAP_SA_X32 (6) |
| 26 | }; |
| 27 | |
| 28 | /* GSM 04.08 Bearer Capability: User Rate */ |
| 29 | type enumerated GSM48_bcap_user_rate { |
Harald Welte | ec3d065 | 2018-01-22 02:54:13 +0100 | [diff] [blame] | 30 | GSM48_BCAP_UR_NONE (0), |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 31 | GSM48_BCAP_UR_300 (1), |
| 32 | GSM48_BCAP_UR_1200 (2), |
| 33 | GSM48_BCAP_UR_2400 (3), |
| 34 | GSM48_BCAP_UR_4800 (4), |
| 35 | GSM48_BCAP_UR_9600 (5), |
| 36 | GSM48_BCAP_UR_12000 (6), |
| 37 | GSM48_BCAP_UR_1200_75 (7) |
| 38 | }; |
| 39 | |
| 40 | /* GSM 04.08 Bearer Capability: Parity */ |
| 41 | type enumerated GSM48_bcap_parity { |
| 42 | GSM48_BCAP_PAR_ODD (0), |
| 43 | GSM48_BCAP_PAR_EVEN (2), |
| 44 | GSM48_BCAP_PAR_NONE (3), |
| 45 | GSM48_BCAP_PAR_ZERO (4), |
| 46 | GSM48_BCAP_PAR_ONE (5) |
| 47 | }; |
| 48 | |
| 49 | /* GSM 04.08 Bearer Capability: Intermediate Rate */ |
| 50 | type enumerated GSM48_bcap_interm_rate { |
Harald Welte | ec3d065 | 2018-01-22 02:54:13 +0100 | [diff] [blame] | 51 | GSM48_BCAP_IR_NONE (0), |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 52 | GSM48_BCAP_IR_8k (2), |
| 53 | GSM48_BCAP_IR_16k (3) |
| 54 | }; |
| 55 | |
| 56 | /* GSM 04.08 Bearer Capability: Transparency */ |
| 57 | type enumerated GSM48_bcap_transp { |
| 58 | GSM48_BCAP_TR_TRANSP (0), |
| 59 | GSM48_BCAP_TR_RLP (1), |
| 60 | GSM48_BCAP_TR_TR_PREF (2), |
| 61 | GSM48_BCAP_TR_RLP_PREF (3) |
| 62 | }; |
| 63 | |
| 64 | /* GSM 04.08 Bearer Capability: Modem Type */ |
| 65 | type enumerated GSM48_bcap_modem_type { |
| 66 | GSM48_BCAP_MT_NONE (0), |
| 67 | GSM48_BCAP_MT_V21 (1), |
| 68 | GSM48_BCAP_MT_V22 (2), |
| 69 | GSM48_BCAP_MT_V22bis (3), |
| 70 | GSM48_BCAP_MT_V23 (4), |
| 71 | GSM48_BCAP_MT_V26ter (5), |
| 72 | GSM48_BCAP_MT_V32 (6), |
| 73 | GSM48_BCAP_MT_UNDEF (7), |
| 74 | GSM48_BCAP_MT_AUTO_1 (8) |
| 75 | }; |
| 76 | |
| 77 | type enumerated MNCC_MsgType { |
| 78 | MNCC_SETUP_REQ ('0101'O), |
| 79 | MNCC_SETUP_IND ('0102'O), |
| 80 | MNCC_SETUP_RSP ('0103'O), |
| 81 | MNCC_SETUP_CNF ('0104'O), |
| 82 | MNCC_SETUP_COMPL_REQ ('0105'O), |
| 83 | MNCC_SETUP_COMPL_IND ('0106'O), |
| 84 | MNCC_CALL_CONF_IND ('0107'O), |
| 85 | MNCC_CALL_PROC_REQ ('0108'O), |
| 86 | MNCC_PROGRESS_REQ ('0109'O), |
| 87 | MNCC_ALERT_REQ ('010a'O), |
| 88 | MNCC_ALERT_IND ('010b'O), |
| 89 | MNCC_NOTIFY_REQ ('010c'O), |
| 90 | MNCC_NOTIFY_IND ('010d'O), |
| 91 | MNCC_DISC_REQ ('010e'O), |
| 92 | MNCC_DISC_IND ('010f'O), |
| 93 | MNCC_REL_REQ ('0110'O), |
| 94 | MNCC_REL_IND ('0111'O), |
| 95 | MNCC_REL_CNF ('0112'O), |
| 96 | MNCC_FACILITY_REQ ('0113'O), |
| 97 | MNCC_FACILITY_IND ('0114'O), |
| 98 | MNCC_START_DTMF_IND ('0115'O), |
| 99 | MNCC_START_DTMF_RSP ('0116'O), |
| 100 | MNCC_START_DTMF_REJ ('0117'O), |
| 101 | MNCC_STOP_DTMF_IND ('0118'O), |
| 102 | MNCC_STOP_DTMF_RSP ('0119'O), |
| 103 | MNCC_MODIFY_REQ ('011a'O), |
| 104 | MNCC_MODIFY_IND ('011b'O), |
| 105 | MNCC_MODIFY_RSP ('011c'O), |
| 106 | MNCC_MODIFY_CNF ('011d'O), |
| 107 | MNCC_MODIFY_REJ ('011e'O), |
| 108 | MNCC_HOLD_IND ('011f'O), |
| 109 | MNCC_HOLD_CNF ('0120'O), |
| 110 | MNCC_HOLD_REJ ('0121'O), |
| 111 | MNCC_RETRIEVE_IND ('0122'O), |
| 112 | MNCC_RETRIEVE_CNF ('0123'O), |
| 113 | MNCC_RETRIEVE_REJ ('0124'O), |
| 114 | MNCC_USERINFO_REQ ('0125'O), |
| 115 | MNCC_USERINFO_IND ('0126'O), |
| 116 | MNCC_REJ_REQ ('0127'O), |
| 117 | MNCC_REJ_IND ('0128'O), |
| 118 | |
| 119 | MNCC_BRIDGE ('0200'O), |
| 120 | MNCC_FRAME_RECV ('0201'O), |
| 121 | MNCC_FRAME_DROP ('0202'O), |
| 122 | MNCC_LCHAN_MODIFY ('0203'O), |
| 123 | MNCC_RTP_CREATE ('0204'O), |
| 124 | MNCC_RTP_CONNECT ('0205'O), |
| 125 | MNCC_RTP_FREE ('0206'O), |
| 126 | |
| 127 | GSM_TCHF_FRAME ('0300'O), |
| 128 | GSM_TCHF_FRAME_EFR ('0301'O), |
| 129 | GSM_TCHH_FRAME ('0302'O), |
| 130 | GSM_TCH_FRAME_AMR ('0303'O), |
| 131 | GSM_BAD_FRAME ('03ff'O), |
| 132 | |
| 133 | MNCC_SOCKET_HELLO ('0400'O) |
| 134 | }; |
| 135 | |
| 136 | const integer GSM_MAX_FACILITY := 128; |
| 137 | const integer GSM_MAX_SSVERSION := 128; |
| 138 | const integer GSM_MAX_USERUSER := 128; |
| 139 | |
| 140 | type record MNCC_bearer_cap_data { |
| 141 | GSM48_bcap_ra rate_adaptation, |
| 142 | GSM48_bcap_sig_access sig_access, |
| 143 | int async, |
| 144 | int nr_stop_bits, |
| 145 | int nr_data_bits, |
| 146 | GSM48_bcap_user_rate user_rate, |
| 147 | GSM48_bcap_parity parity, |
| 148 | GSM48_bcap_interm_rate interm_rate, |
| 149 | GSM48_bcap_transp transp, |
| 150 | GSM48_bcap_modem_type modem_type |
| 151 | }; |
| 152 | |
| 153 | type record length(0..8) of int MNCC_speech_vers; |
| 154 | |
| 155 | /* Expanded fields from GSM TS 04.08, Table 10.5.102 */ |
| 156 | type record MNCC_bearer_cap { |
| 157 | int transfer, |
| 158 | int mode, |
| 159 | int coding, |
| 160 | int radio, |
| 161 | int speech_ctm, |
| 162 | MNCC_speech_vers speech_ver, |
| 163 | MNCC_bearer_cap_data data optional |
| 164 | }; |
| 165 | |
| 166 | template MNCC_bearer_cap ts_MNCC_bcap_voice := { |
| 167 | transfer := 0, /* speech */ |
| 168 | mode := 0, /* circuit */ |
| 169 | coding := 0, /* GSM standard */ |
| 170 | radio := 3, /* FR/HR, FR preferred */ |
| 171 | speech_ctm := 0, /* not supported */ |
Harald Welte | 515f5d1 | 2018-01-22 02:55:10 +0100 | [diff] [blame] | 172 | speech_ver := { 0, 2, 4, 1, 5, -1 }, |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 173 | data := omit |
| 174 | }; |
| 175 | |
| 176 | type record MNCC_number { |
| 177 | GSM48_type_of_number number_type, |
| 178 | GSM48_num_plan_ind plan, |
| 179 | GSM48_present_ind presence, |
| 180 | GSM48_screening_ind screen, |
| 181 | charstring number |
| 182 | }; |
| 183 | |
| 184 | /* 24.008 10.5.118 */ |
| 185 | type enumerated GSM48_num_plan_ind { |
| 186 | GSM48_NUMPLAN_UNKNOWN (0), |
| 187 | GSM48_NUMPLAN_E164 (1), |
| 188 | GSM48_NUMPLAN_X121 (3), |
| 189 | GSM48_NUMPLAN_F69 (4), |
| 190 | GSM48_NUMPLAN_NATIONAL (8), |
| 191 | GSM48_NUMPLAN_PRIVATE (9), |
| 192 | GSM48_NUMPLAN_CTS (11), |
| 193 | GSM48_NUMPLAN_RESERVED (15) |
| 194 | }; |
| 195 | |
| 196 | /* 04.08 10.5.118 */ |
| 197 | type enumerated GSM48_type_of_number { |
| 198 | GSM48_TON_UNKNOWN (0), |
| 199 | GSM48_TON_INTERNATIONAL (1), |
| 200 | GSM48_TON_NATIONAL (2), |
| 201 | GSM48_TON_NETWORK_SPECIFIC (3), |
| 202 | GSM48_TON_SHORT_CODE (4) |
| 203 | }; |
| 204 | |
| 205 | /* 04.08 10.5.120 */ |
| 206 | type enumerated GSM48_present_ind { |
| 207 | GSM48_PRES_IND_ALLOWED (0), |
| 208 | GSM48_PRES_IND_RESTRICTED (1), |
| 209 | GSM48_PRES_IND_NUM_NOT_AVAIL (2), |
| 210 | GSM48_PRES_IND_RESERVED (3) |
| 211 | }; |
| 212 | |
| 213 | type enumerated GSM48_screening_ind { |
| 214 | GSM48_SCR_IND_NOT_SCREENED (0), |
| 215 | GSM48_SCR_IND_VERIF_PASSED (1), |
| 216 | GSM48_SCR_IND_VERIF_FAILED (2), |
| 217 | GSM48_SCR_IND_NETW_PROVIDED (3) |
| 218 | }; |
| 219 | |
Harald Welte | fe75a20 | 2018-01-17 13:59:20 +0100 | [diff] [blame] | 220 | /* 24.008 Table 10.5.122 */ |
| 221 | type enumerated GSM48_cause_coding { |
| 222 | GSM48_CAUSE_CS_Q931 ('00'B), |
| 223 | GSM48_CAUSE_CS_RSVD ('01'B), |
| 224 | GSM48_CAUSE_CS_NATIONAL ('10'B), |
| 225 | GSM48_CAUSE_CS_GSM ('11'B) |
| 226 | } |
| 227 | |
| 228 | type enumerated GSM48_cause_loc { |
| 229 | GSM48_CAUSE_LOC_USER ('0000'B), |
| 230 | GSM48_CAUSE_LOC_PRN_S_LU ('0001'B), |
| 231 | GSM48_CAUSE_LOC_PUN_S_LU ('0010'B), |
| 232 | GSM48_CAUSE_LOC_TRANS_NET ('0011'B), |
| 233 | GSM48_CAUSE_LOC_PUN_S_RU ('0100'B), |
| 234 | GSM48_CAUSE_LOC_PRN_S_RU ('0101'B), |
| 235 | GSM48_CAUSE_LOC_INN_NET ('0111'B), |
| 236 | GSM48_CAUSE_LOC_NET_BEYOND ('1010'B) |
| 237 | } |
| 238 | |
| 239 | |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 240 | |
Harald Welte | d748a05 | 2018-01-22 02:59:24 +0100 | [diff] [blame] | 241 | template (value) MNCC_number ts_MNCC_number(charstring number, |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 242 | GSM48_type_of_number ton := GSM48_TON_INTERNATIONAL, |
| 243 | GSM48_num_plan_ind npi := GSM48_NUMPLAN_E164, |
| 244 | GSM48_present_ind pres := GSM48_PRES_IND_ALLOWED, |
| 245 | GSM48_screening_ind screen := GSM48_SCR_IND_NOT_SCREENED) := { |
| 246 | number_type := ton, |
| 247 | plan := npi, |
| 248 | presence := pres, |
| 249 | screen := screen, |
| 250 | number := number |
| 251 | } |
| 252 | |
Harald Welte | d748a05 | 2018-01-22 02:59:24 +0100 | [diff] [blame] | 253 | template MNCC_number tr_MNCC_number(template charstring number, |
| 254 | template GSM48_type_of_number ton := ?, |
| 255 | template GSM48_num_plan_ind npi := ?, |
| 256 | template GSM48_present_ind pres := ?, |
| 257 | template GSM48_screening_ind screen := ?) := { |
| 258 | number_type := ton, |
| 259 | plan := npi, |
| 260 | presence := pres, |
| 261 | screen := screen, |
| 262 | number := number |
| 263 | } |
| 264 | |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 265 | type record MNCC_cause { |
Harald Welte | fe75a20 | 2018-01-17 13:59:20 +0100 | [diff] [blame] | 266 | GSM48_cause_loc location, |
| 267 | GSM48_cause_coding coding, |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 268 | int rec, |
| 269 | int rec_val, |
| 270 | int val, |
| 271 | octetstring diag |
Harald Welte | fe75a20 | 2018-01-17 13:59:20 +0100 | [diff] [blame] | 272 | } with { |
| 273 | variant (location) "FIELDLENGTH(32)"; |
| 274 | variant (coding) "FIELDLENGTH(32)"; |
| 275 | } |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 276 | |
Harald Welte | 2bb825f | 2018-01-22 11:31:18 +0100 | [diff] [blame] | 277 | template MNCC_cause ts_MNCC_cause(int val, |
| 278 | GSM48_cause_loc loc := GSM48_CAUSE_LOC_PUN_S_LU, |
| 279 | GSM48_cause_coding coding := GSM48_CAUSE_CS_GSM, |
| 280 | octetstring diag := ''O) := { |
| 281 | location := loc, |
| 282 | coding := coding, |
| 283 | rec := 0, |
| 284 | rec_val := 0, |
| 285 | val := val, |
| 286 | diag := diag |
| 287 | } |
| 288 | |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 289 | type record MNCC_useruser { |
| 290 | int proto, |
| 291 | charstring info |
| 292 | }; |
| 293 | |
| 294 | type record MNCC_progress { |
| 295 | int coding, |
| 296 | int location, |
| 297 | int descr |
| 298 | }; |
| 299 | |
| 300 | type record MNCC_cccap { |
| 301 | int dtmf, |
| 302 | int pcp |
| 303 | }; |
| 304 | |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 305 | type int MNCC_notify (0..127); |
Harald Welte | d13700d | 2018-02-02 20:06:52 +0100 | [diff] [blame] | 306 | type charstring MNCC_keypad length (1); |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 307 | |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 308 | type enumerated MNCC_bcap { |
| 309 | GSM_MNCC_BCAP_SPEECH (0), |
| 310 | GSM_MNCC_BCAP_UNR_DIG (1), |
| 311 | GSM_MNCC_BCAP_AUDIO (2), |
| 312 | GSM_MNCC_BCAP_FAX_G3 (3), |
| 313 | GSM_MNCC_BCAP_OTHER_ITC (4), |
| 314 | GSM_MNCC_BCAP_RESERVED (7) |
| 315 | }; |
| 316 | |
| 317 | |
| 318 | type record MNCC_PDU_Signal { |
| 319 | uint32_t callref, |
| 320 | |
| 321 | MNCC_bearer_cap bearer_cap optional, |
| 322 | MNCC_number called optional, |
| 323 | MNCC_number calling optional, |
| 324 | MNCC_number redirecting optional, |
| 325 | MNCC_number connected optional, |
| 326 | MNCC_cause cause optional, |
| 327 | MNCC_progress progress optional, |
| 328 | MNCC_useruser useruser optional, |
| 329 | charstring facility optional, |
| 330 | MNCC_cccap cccap optional, |
| 331 | charstring ssversion optional, |
| 332 | |
| 333 | int clir_sup, |
| 334 | int clir_inv, |
| 335 | int signal optional, |
| 336 | |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 337 | MNCC_keypad keypad optional, |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 338 | int more, |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 339 | MNCC_notify notify, |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 340 | int emergency optional, |
| 341 | charstring imsi, |
| 342 | |
| 343 | uint8_t lchan_type, /* empty in OSmoMSC */ |
| 344 | uint8_t lchan_mode /* empty in OsmoMSC */ |
| 345 | }; |
| 346 | |
| 347 | |
| 348 | type record MNCC_PDU_Data { |
| 349 | uint32_t callref, |
| 350 | octetstring data |
| 351 | }; |
| 352 | |
| 353 | type record MNCC_PDU_Rtp { |
| 354 | uint32_t callref, |
| 355 | uint32_t ip, |
| 356 | uint16_t rtp_port, |
| 357 | uint32_t payload_type, |
| 358 | uint32_t payload_msg_type |
| 359 | }; |
| 360 | |
| 361 | type record MNCC_PDU_Hello { |
| 362 | uint32_t version, |
| 363 | uint32_t mncc_size, |
| 364 | uint32_t data_frame_size, |
| 365 | uint32_t called_offset, |
| 366 | uint32_t signal_offset, |
| 367 | uint32_t emergency_offset, |
| 368 | uint32_t lchan_type_offset |
| 369 | }; |
| 370 | |
| 371 | |
| 372 | type union MNCC_MsgUnion { |
| 373 | MNCC_PDU_Signal signal, |
| 374 | MNCC_PDU_Data data, |
| 375 | MNCC_PDU_Rtp rtp, |
| 376 | MNCC_PDU_Hello hello |
| 377 | }; |
| 378 | |
| 379 | |
| 380 | type record MNCC_PDU { |
| 381 | MNCC_MsgType msg_type, |
| 382 | MNCC_MsgUnion u |
| 383 | } with { variant (u) "CROSSTAG( |
| 384 | hello, msg_type = MNCC_SOCKET_HELLO; |
| 385 | rtp, { msg_type = MNCC_RTP_CREATE, |
| 386 | msg_type = MNCC_RTP_CONNECT, |
| 387 | msg_type = MNCC_RTP_FREE }; |
| 388 | data, { msg_type = GSM_TCHF_FRAME, |
| 389 | msg_type = GSM_TCHF_FRAME_EFR, |
| 390 | msg_type = GSM_TCHH_FRAME, |
| 391 | msg_type = GSM_TCH_FRAME_AMR, |
| 392 | msg_type = GSM_BAD_FRAME }; |
| 393 | signal, OTHERWISE |
| 394 | )" |
| 395 | }; |
| 396 | |
| 397 | external function enc_MNCC_PDU(in MNCC_PDU pdu) return octetstring; |
| 398 | |
| 399 | external function dec_MNCC_PDU(in octetstring stream) return MNCC_PDU; |
| 400 | |
| 401 | |
| 402 | template MNCC_PDU ts_MNCC_Sign(MNCC_MsgType msg_type, MNCC_PDU_Signal sign) := { |
| 403 | msg_type := msg_type, |
| 404 | u := { |
| 405 | signal := sign |
| 406 | } |
| 407 | } |
| 408 | |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 409 | template MNCC_PDU ts_MNCC_SIMPLE(MNCC_MsgType msg_type, uint32_t call_id) := { |
| 410 | msg_type := msg_type, |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 411 | u := { |
| 412 | signal := { |
| 413 | callref := call_id, |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 414 | bearer_cap := omit, |
| 415 | called := omit, |
| 416 | calling := omit, |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 417 | redirecting := omit, |
| 418 | connected := omit, |
| 419 | cause := omit, |
| 420 | progress := omit, |
| 421 | useruser := omit, |
| 422 | facility := omit, |
| 423 | cccap := omit, |
| 424 | ssversion := omit, |
| 425 | clir_sup := 0, |
| 426 | clir_inv := 0, |
| 427 | signal := omit, |
| 428 | keypad := omit, |
| 429 | more := 0, |
| 430 | notify := 0, |
| 431 | emergency := omit, |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 432 | imsi := "", |
| 433 | lchan_type := 0, |
| 434 | lchan_mode := 0 |
| 435 | } |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | template MNCC_PDU tr_MNCC_SIMPLE(template MNCC_MsgType msg_type, template uint32_t call_id) := { |
| 440 | msg_type := msg_type, |
| 441 | u := { |
| 442 | signal := { |
| 443 | callref := call_id, |
| 444 | bearer_cap := omit, |
| 445 | called := omit, |
| 446 | calling := omit, |
| 447 | redirecting := omit, |
| 448 | connected := omit, |
| 449 | cause := omit, |
| 450 | progress := omit, |
| 451 | useruser := omit, |
| 452 | facility := omit, |
| 453 | cccap := omit, |
| 454 | ssversion := omit, |
| 455 | clir_sup := 0, |
| 456 | clir_inv := 0, |
| 457 | signal := omit, |
| 458 | keypad := omit, |
| 459 | more := 0, |
| 460 | notify := 0, |
| 461 | emergency := *, |
| 462 | imsi := ?, |
| 463 | lchan_type := ?, |
| 464 | lchan_mode := ? |
| 465 | } |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | |
| 470 | |
| 471 | /* MT: MSC <- MNCC: SETUP.req from ext. MNCC handler to MSC */ |
| 472 | template MNCC_PDU ts_MNCC_SETUP_req(uint32_t call_id, charstring called, charstring calling, charstring imsi := "") := { |
| 473 | msg_type := MNCC_SETUP_REQ, |
| 474 | u := { |
| 475 | signal := { /* See 24.008 9.3.23.1 */ |
| 476 | callref := call_id, |
| 477 | bearer_cap := ts_MNCC_bcap_voice, /* mandatory */ |
| 478 | called := valueof(ts_MNCC_number(called)), /* optional */ |
| 479 | calling := valueof(ts_MNCC_number(calling)), /* optional */ |
| 480 | redirecting := omit, /* optional */ |
| 481 | connected := omit, |
| 482 | cause := omit, |
| 483 | progress := omit, /* optional */ |
| 484 | useruser := omit, /* optional */ |
| 485 | facility := omit, /* optional */ |
| 486 | cccap := omit, |
| 487 | ssversion := omit, |
| 488 | clir_sup := 0, |
| 489 | clir_inv := 0, |
| 490 | signal := omit, /* optional */ |
| 491 | keypad := omit, |
| 492 | more := 0, |
| 493 | notify := 0, |
| 494 | emergency := omit, |
| 495 | imsi := imsi, |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 496 | lchan_type := 0, |
| 497 | lchan_mode := 0 |
| 498 | } |
| 499 | } |
| 500 | }; |
| 501 | |
Harald Welte | 4017d55 | 2018-01-26 21:40:05 +0100 | [diff] [blame] | 502 | /* MO: MSC <- MNCC: Respons to SETUP.ind */ |
| 503 | template MNCC_PDU ts_MNCC_SETUP_rsp(uint32_t call_id, charstring imsi := "", |
| 504 | template MNCC_number connected := omit) := { |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 505 | msg_type := MNCC_SETUP_RSP, |
| 506 | u := { |
| 507 | signal := { /* See 24.008 9.3.5 */ |
| 508 | callref := call_id, |
| 509 | bearer_cap := omit, |
| 510 | called := omit, |
| 511 | calling := omit, |
| 512 | redirecting := omit, |
| 513 | connected := connected, |
| 514 | cause := omit, |
| 515 | progress := omit, |
Harald Welte | 4017d55 | 2018-01-26 21:40:05 +0100 | [diff] [blame] | 516 | useruser := omit, /* optional */ |
| 517 | facility := omit, /* optional */ |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 518 | cccap := omit, |
Harald Welte | 4017d55 | 2018-01-26 21:40:05 +0100 | [diff] [blame] | 519 | ssversion := omit, /* optional */ |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 520 | clir_sup := 0, |
| 521 | clir_inv := 0, |
| 522 | signal := omit, |
| 523 | keypad := omit, |
| 524 | more := 0, |
| 525 | notify := 0, |
Harald Welte | 4017d55 | 2018-01-26 21:40:05 +0100 | [diff] [blame] | 526 | emergency := omit, |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 527 | imsi := imsi, |
Harald Welte | 4017d55 | 2018-01-26 21:40:05 +0100 | [diff] [blame] | 528 | lchan_type := 0, |
| 529 | lchan_mode := 0 |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 530 | } |
| 531 | } |
| 532 | }; |
| 533 | |
| 534 | /* MO: MSC -> MNCC: SETUP.ind from MSC to ext. MNCC handler */ |
| 535 | template MNCC_PDU tr_MNCC_SETUP_ind(template uint32_t call_id := ?, template MNCC_number called := ?, |
| 536 | template MNCC_number calling := *, template charstring imsi :=?) := { |
| 537 | msg_type := MNCC_SETUP_IND, |
| 538 | u := { |
| 539 | signal := { /* See 24.008 9.3.23.2 */ |
| 540 | callref := call_id, |
| 541 | bearer_cap := ?, /* mandatory */ |
| 542 | called := called, /* mandatory */ |
| 543 | calling := calling, /* optional */ |
| 544 | redirecting := omit, |
| 545 | connected := omit, |
| 546 | cause := omit, |
| 547 | progress := omit, |
| 548 | useruser := *, /* optional */ |
| 549 | facility := *, /* optional */ |
| 550 | cccap := *, /* optional */ |
| 551 | ssversion := *, /* optional */ |
| 552 | clir_sup := ?, /* optional */ |
| 553 | clir_inv := ?, /* optional */ |
| 554 | signal := omit, |
| 555 | keypad := omit, |
| 556 | more := 0, |
| 557 | notify := 0, |
| 558 | emergency := *, |
| 559 | imsi := imsi, |
| 560 | lchan_type := ?, |
| 561 | lchan_mode := ? |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | } |
| 566 | |
| 567 | /* MO: MSC <- MNCC: SETUP.cnf; Response to SETUP.ind */ |
| 568 | template MNCC_PDU ts_MNCC_SETUP_CNF(uint32_t call_id, template MNCC_number connected := omit) := { |
| 569 | msg_type := MNCC_SETUP_CNF, |
| 570 | u := { |
| 571 | signal := { /* See 24.008 9.3.5 */ |
| 572 | callref := call_id, |
| 573 | bearer_cap := omit, |
| 574 | called := omit, |
| 575 | calling := omit, |
| 576 | redirecting := omit, |
| 577 | connected := connected, |
| 578 | cause := omit, |
| 579 | progress := *, |
| 580 | useruser := *, |
| 581 | facility := *, |
| 582 | cccap := omit, |
| 583 | ssversion := omit, |
| 584 | clir_sup := 0, |
| 585 | clir_inv := 0, |
| 586 | signal := omit, |
| 587 | keypad := omit, |
| 588 | more := 0, |
| 589 | notify := 0, |
| 590 | emergency := *, |
| 591 | imsi := "", |
| 592 | lchan_type := ?, |
| 593 | lchan_mode := ? |
| 594 | } |
| 595 | } |
| 596 | } |
| 597 | |
Harald Welte | 33ec09b | 2018-02-10 15:34:46 +0100 | [diff] [blame] | 598 | /* MT: MSC -> MNCC: SETUP.cnf; Response to SETUP.req */ |
| 599 | template MNCC_PDU tr_MNCC_SETUP_cnf(uint32_t call_id, template MNCC_number connected := *) := { |
| 600 | msg_type := MNCC_SETUP_CNF, |
| 601 | u := { |
| 602 | signal := { /* See 24.008 9.3.5 */ |
| 603 | callref := call_id, |
| 604 | bearer_cap := omit, |
| 605 | called := omit, |
| 606 | calling := omit, |
| 607 | redirecting := omit, |
| 608 | connected := connected, |
| 609 | cause := omit, |
| 610 | progress := *, |
| 611 | useruser := *, |
| 612 | facility := *, |
| 613 | cccap := omit, |
| 614 | ssversion := omit, |
| 615 | clir_sup := 0, |
| 616 | clir_inv := 0, |
| 617 | signal := omit, |
| 618 | keypad := omit, |
| 619 | more := 0, |
| 620 | notify := 0, |
| 621 | emergency := *, |
| 622 | imsi := ?, |
| 623 | lchan_type := ?, |
| 624 | lchan_mode := ? |
| 625 | } |
| 626 | } |
| 627 | } |
| 628 | |
Harald Welte | 4017d55 | 2018-01-26 21:40:05 +0100 | [diff] [blame] | 629 | /* MT: MSC -> MNCC: SETUP_COMPL.req; request to send CONNECT ACK */ |
| 630 | template MNCC_PDU tr_MNCC_SETUP_COMPL_req(template uint32_t call_id) := |
| 631 | tr_MNCC_SIMPLE(MNCC_SETUP_COMPL_REQ, call_id); /* See 24.008 9.3.6 */ |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 632 | |
| 633 | /* MT: MSC -> MNCC: SETUP_COMPL.ind; receipt of CONNECT ACK */ |
| 634 | template MNCC_PDU tr_MNCC_SETUP_COMPL_ind(template uint32_t call_id := ?) := |
| 635 | tr_MNCC_SIMPLE(MNCC_SETUP_COMPL_IND, call_id); /* See 24.008 9.3.6 */ |
| 636 | |
| 637 | /* MT: MSC -> MNCC: REJ.req; reject MT call */ |
| 638 | template MNCC_PDU tr_MNCC_REJ_req(template uint32_t call_id, template MNCC_cause cause := *) := { |
| 639 | msg_type := MNCC_REJ_REQ, |
| 640 | u := { |
| 641 | signal := { /* See 24.008 9.3.19 */ |
| 642 | callref := call_id, |
| 643 | bearer_cap := omit, |
| 644 | called := omit, |
| 645 | calling := omit, |
| 646 | redirecting := omit, |
| 647 | connected := omit, |
| 648 | cause := cause, |
| 649 | progress := omit, |
| 650 | useruser := *, |
| 651 | facility := *, |
| 652 | cccap := omit, |
| 653 | ssversion := omit, |
| 654 | clir_sup := 0, |
| 655 | clir_inv := 0, |
| 656 | signal := omit, |
| 657 | keypad := omit, |
| 658 | more := 0, |
| 659 | notify := 0, |
| 660 | emergency := omit, |
| 661 | imsi := ?, |
| 662 | lchan_type := ?, |
| 663 | lchan_mode := ? |
| 664 | } |
| 665 | } |
| 666 | } |
| 667 | |
| 668 | /* MO: MSC <- MNCC: REJ.ind; reject MO call */ |
| 669 | template MNCC_PDU ts_MNCC_REJ_ind(uint32_t call_id, template MNCC_cause cause := omit) := { |
| 670 | msg_type := MNCC_REJ_IND, |
| 671 | u := { |
| 672 | signal := { /* See 24.008 9.3.19 */ |
| 673 | callref := call_id, |
| 674 | bearer_cap := omit, |
| 675 | called := omit, |
| 676 | calling := omit, |
| 677 | redirecting := omit, |
| 678 | connected := omit, |
| 679 | cause := cause, |
| 680 | progress := omit, |
| 681 | useruser := omit, |
| 682 | facility := omit, |
| 683 | cccap := omit, |
| 684 | ssversion := omit, |
| 685 | clir_sup := 0, |
| 686 | clir_inv := 0, |
| 687 | signal := omit, |
| 688 | keypad := omit, |
| 689 | more := 0, |
| 690 | notify := 0, |
| 691 | emergency := omit, |
| 692 | imsi := "", |
| 693 | lchan_type := 0, |
| 694 | lchan_mode := 0 |
| 695 | } |
| 696 | } |
| 697 | } |
| 698 | |
Harald Welte | 812f7a4 | 2018-01-27 00:49:18 +0100 | [diff] [blame] | 699 | /* MT: MSC -> MNCC: CALL_CONF.req; send CALL CONFIRMED to MS */ |
| 700 | template MNCC_PDU tr_MNCC_CALL_CONF_ind(template uint32_t call_id, template MNCC_bearer_cap bcap := *, |
| 701 | template MNCC_cause cause := *, |
| 702 | template MNCC_cccap cccap := *) := { |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 703 | msg_type := MNCC_CALL_CONF_IND, |
| 704 | u := { |
| 705 | signal := { /* See 24.008 9.3.2 */ |
| 706 | callref := call_id, |
| 707 | bearer_cap := bcap, |
| 708 | called := omit, |
| 709 | calling := omit, |
| 710 | redirecting := omit, |
| 711 | connected := omit, |
| 712 | cause := cause, |
| 713 | progress := omit, |
| 714 | useruser := omit, |
| 715 | facility := omit, |
| 716 | cccap := cccap, |
| 717 | ssversion := omit, |
| 718 | clir_sup := 0, |
| 719 | clir_inv := 0, |
| 720 | signal := omit, |
| 721 | keypad := omit, |
| 722 | more := 0, |
| 723 | notify := 0, |
| 724 | emergency := omit, |
Harald Welte | 812f7a4 | 2018-01-27 00:49:18 +0100 | [diff] [blame] | 725 | imsi := ?, |
| 726 | lchan_type := ?, |
| 727 | lchan_mode := ? |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 728 | } |
| 729 | } |
| 730 | } |
| 731 | |
| 732 | /* MO: MSC <- MNCC: CALL_PROC.req; call establishment initiated in network */ |
| 733 | template MNCC_PDU ts_MNCC_CALL_PROC_req(uint32_t call_id, template MNCC_bearer_cap bcap := omit, |
| 734 | template MNCC_progress prog := omit, |
| 735 | template charstring fac := omit, |
| 736 | template MNCC_cccap cccap := omit) := { |
| 737 | msg_type := MNCC_CALL_PROC_REQ, |
| 738 | u := { |
| 739 | signal := { /* See 24.008 9.3.2 */ |
| 740 | callref := call_id, |
| 741 | bearer_cap := bcap, |
| 742 | called := omit, |
| 743 | calling := omit, |
| 744 | redirecting := omit, |
| 745 | connected := omit, |
| 746 | cause := omit, |
| 747 | progress := prog, |
| 748 | useruser := omit, |
| 749 | facility := fac, |
| 750 | cccap := cccap, |
| 751 | ssversion := omit, |
| 752 | clir_sup := 0, |
| 753 | clir_inv := 0, |
| 754 | signal := omit, |
| 755 | keypad := omit, |
| 756 | more := 0, |
| 757 | notify := 0, |
| 758 | emergency := omit, |
| 759 | imsi := "", |
| 760 | lchan_type := 0, |
| 761 | lchan_mode := 0 |
| 762 | } |
| 763 | } |
| 764 | } |
| 765 | |
| 766 | /* MSC <- MNCC: PROGRESS.req; PROGRESS message from ISDN */ |
| 767 | template MNCC_PDU ts_MNCC_PROGRESS_req(uint32_t call_id, MNCC_progress prog, |
| 768 | template MNCC_useruser uu := omit) := { |
| 769 | msg_type := MNCC_PROGRESS_REQ, |
| 770 | u := { |
| 771 | signal := { /* See 24.008 9.3.17 */ |
| 772 | callref := call_id, |
| 773 | bearer_cap := omit, |
| 774 | called := omit, |
| 775 | calling := omit, |
| 776 | redirecting := omit, |
| 777 | connected := omit, |
| 778 | cause := omit, |
| 779 | progress := prog, |
| 780 | useruser := uu, |
| 781 | facility := omit, |
| 782 | cccap := omit, |
| 783 | ssversion := omit, |
| 784 | clir_sup := 0, |
| 785 | clir_inv := 0, |
| 786 | signal := omit, |
| 787 | keypad := omit, |
| 788 | more := 0, |
| 789 | notify := 0, |
| 790 | emergency := omit, |
| 791 | imsi := "", |
| 792 | lchan_type := 0, |
| 793 | lchan_mode := 0 |
| 794 | } |
| 795 | } |
| 796 | } |
| 797 | |
| 798 | /* MO: MSC <- MNCC: ALERT.req; indicate that user alerting has been initiated */ |
| 799 | template MNCC_PDU ts_MNCC_ALERT_req(uint32_t call_id, template MNCC_progress prog := omit, |
| 800 | template charstring fac := omit, |
| 801 | template MNCC_useruser uu := omit) := { |
| 802 | msg_type := MNCC_ALERT_REQ, |
| 803 | u := { |
| 804 | signal := { /* See 24.008 9.3.1 */ |
| 805 | callref := call_id, |
| 806 | bearer_cap := omit, |
| 807 | called := omit, |
| 808 | calling := omit, |
| 809 | redirecting := omit, |
| 810 | connected := omit, |
| 811 | cause := omit, |
| 812 | progress := prog, |
| 813 | useruser := uu, |
| 814 | facility := fac, |
| 815 | cccap := omit, |
| 816 | ssversion := omit, |
| 817 | clir_sup := 0, |
| 818 | clir_inv := 0, |
| 819 | signal := omit, |
| 820 | keypad := omit, |
| 821 | more := 0, |
| 822 | notify := 0, |
| 823 | emergency := omit, |
| 824 | imsi := "", |
| 825 | lchan_type := 0, |
| 826 | lchan_mode := 0 |
| 827 | } |
| 828 | } |
| 829 | } |
| 830 | |
| 831 | |
| 832 | /* MT: MSC -> MNCC: ALERRT.ind; indicates that mobile user alerting has been initiated */ |
| 833 | template MNCC_PDU tr_MNCC_ALERT_ind(template uint32_t call_id, template MNCC_progress prog := omit, |
| 834 | template charstring fac := omit, |
| 835 | template MNCC_useruser uu := omit) := { |
Harald Welte | 33ec09b | 2018-02-10 15:34:46 +0100 | [diff] [blame] | 836 | msg_type := MNCC_ALERT_IND, |
Harald Welte | 8b2a258 | 2018-01-16 08:11:42 +0100 | [diff] [blame] | 837 | u := { |
| 838 | signal := { /* See 24.008 9.3.1 */ |
| 839 | callref := call_id, |
| 840 | bearer_cap := omit, |
| 841 | called := omit, |
| 842 | calling := omit, |
| 843 | redirecting := omit, |
| 844 | connected := omit, |
| 845 | cause := omit, |
| 846 | progress := prog, |
| 847 | useruser := uu, |
| 848 | facility := fac, |
| 849 | cccap := omit, |
| 850 | ssversion := omit, |
| 851 | clir_sup := 0, |
| 852 | clir_inv := 0, |
| 853 | signal := omit, |
| 854 | keypad := omit, |
| 855 | more := 0, |
| 856 | notify := 0, |
| 857 | emergency := *, |
| 858 | imsi := ?, |
| 859 | lchan_type := ?, |
| 860 | lchan_mode := ? |
| 861 | } |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | /* : MSC <- MNCC: NOTIFY.req; request to send information pertaining to a call (such as user suspended) */ |
| 866 | template MNCC_PDU ts_MNCC_NOTIFY_req(uint32_t call_id, MNCC_notify notify) := { |
| 867 | msg_type := MNCC_NOTIFY_REQ, |
| 868 | u := { |
| 869 | signal := { /* See 24.008 9.3.16 */ |
| 870 | callref := call_id, |
| 871 | bearer_cap := omit, |
| 872 | called := omit, |
| 873 | calling := omit, |
| 874 | redirecting := omit, |
| 875 | connected := omit, |
| 876 | cause := omit, |
| 877 | progress := omit, |
| 878 | useruser := omit, |
| 879 | facility := omit, |
| 880 | cccap := omit, |
| 881 | ssversion := omit, |
| 882 | clir_sup := 0, |
| 883 | clir_inv := 0, |
| 884 | signal := omit, |
| 885 | keypad := omit, |
| 886 | more := 0, |
| 887 | notify := notify, |
| 888 | emergency := omit, |
| 889 | imsi := "", |
| 890 | lchan_type := 0, |
| 891 | lchan_mode := 0 |
| 892 | } |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | /* : MSC -> MNCC: NOTIFY.ind; indication to the mobile user */ |
| 897 | template MNCC_PDU tr_MNCC_NOTIFY_ind(template uint32_t call_id, template MNCC_notify notify) := { |
| 898 | msg_type := MNCC_NOTIFY_IND, |
| 899 | u := { |
| 900 | signal := { /* See 24.008 9.3.16 */ |
| 901 | callref := call_id, |
| 902 | bearer_cap := omit, |
| 903 | called := omit, |
| 904 | calling := omit, |
| 905 | redirecting := omit, |
| 906 | connected := omit, |
| 907 | cause := omit, |
| 908 | progress := omit, |
| 909 | useruser := omit, |
| 910 | facility := omit, |
| 911 | cccap := omit, |
| 912 | ssversion := omit, |
| 913 | clir_sup := 0, |
| 914 | clir_inv := 0, |
| 915 | signal := omit, |
| 916 | keypad := omit, |
| 917 | more := 0, |
| 918 | notify := notify, |
| 919 | emergency := *, |
| 920 | imsi := ?, |
| 921 | lchan_type := ?, |
| 922 | lchan_mode := ? |
| 923 | } |
| 924 | } |
| 925 | } |
| 926 | |
| 927 | /* : MSC -> MNCC: DISC.ind; mobile user requests disconnect */ |
| 928 | template MNCC_PDU tr_MNCC_DISC_ind(template uint32_t call_id := ?, template MNCC_cause cause := ?, |
| 929 | template MNCC_progress prog := *, |
| 930 | template charstring fac := *, |
| 931 | template MNCC_useruser uu := *) := { |
| 932 | msg_type := MNCC_DISC_IND, |
| 933 | u := { |
| 934 | signal := { /* See 24.008 9.3.7 */ |
| 935 | callref := call_id, |
| 936 | bearer_cap := omit, |
| 937 | called := omit, |
| 938 | calling := omit, |
| 939 | redirecting := omit, |
| 940 | connected := omit, |
| 941 | cause := cause, |
| 942 | progress := prog, |
| 943 | useruser := uu, |
| 944 | facility := fac, |
| 945 | cccap := omit, |
| 946 | ssversion := omit, |
| 947 | clir_sup := 0, |
| 948 | clir_inv := 0, |
| 949 | signal := omit, |
| 950 | keypad := omit, |
| 951 | more := 0, |
| 952 | notify := 0, |
| 953 | emergency := *, |
| 954 | imsi := ?, |
| 955 | lchan_type := ?, |
| 956 | lchan_mode := ? |
| 957 | } |
| 958 | } |
| 959 | } |
| 960 | |
| 961 | /* : MSC <- MNCC: DISC.req; indicate disconnect to mobile user */ |
| 962 | template MNCC_PDU ts_MNCC_DISC_req(uint32_t call_id, MNCC_cause cause, |
| 963 | template MNCC_progress prog := omit, |
| 964 | template charstring fac := omit, |
| 965 | template MNCC_useruser uu := omit) := { |
| 966 | msg_type := MNCC_DISC_REQ, |
| 967 | u := { |
| 968 | signal := { /* See 24.008 9.3.7 */ |
| 969 | callref := call_id, |
| 970 | bearer_cap := omit, |
| 971 | called := omit, |
| 972 | calling := omit, |
| 973 | redirecting := omit, |
| 974 | connected := omit, |
| 975 | cause := cause, |
| 976 | progress := prog, |
| 977 | useruser := uu, |
| 978 | facility := fac, |
| 979 | cccap := omit, |
| 980 | ssversion := omit, |
| 981 | clir_sup := 0, |
| 982 | clir_inv := 0, |
| 983 | signal := omit, |
| 984 | keypad := omit, |
| 985 | more := 0, |
| 986 | notify := 0, |
| 987 | emergency := omit, |
| 988 | imsi := "", |
| 989 | lchan_type := 0, |
| 990 | lchan_mode := 0 |
| 991 | } |
| 992 | } |
| 993 | } |
| 994 | |
| 995 | /* : MSC -> MNCC: REL.ind; mobile user informs network that user wants to release call + MM */ |
| 996 | template MNCC_PDU tr_MNCC_REL_ind(template uint32_t call_id := ?, template MNCC_cause cause := ?, |
| 997 | template charstring fac := *, template MNCC_useruser uu := *) := { |
| 998 | msg_type := MNCC_REL_IND, |
| 999 | u := { |
| 1000 | signal := { /* See 24.008 9.3.18 */ |
| 1001 | callref := call_id, |
| 1002 | bearer_cap := omit, |
| 1003 | called := omit, |
| 1004 | calling := omit, |
| 1005 | redirecting := omit, |
| 1006 | connected := omit, |
| 1007 | cause := cause, |
| 1008 | progress := omit, |
| 1009 | useruser := uu, |
| 1010 | facility := fac, |
| 1011 | cccap := omit, |
| 1012 | ssversion := omit, |
| 1013 | clir_sup := 0, |
| 1014 | clir_inv := 0, |
| 1015 | signal := omit, |
| 1016 | keypad := omit, |
| 1017 | more := 0, |
| 1018 | notify := 0, |
| 1019 | emergency := *, |
| 1020 | imsi := ?, |
| 1021 | lchan_type := ?, |
| 1022 | lchan_mode := ? |
| 1023 | } |
| 1024 | } |
| 1025 | } |
| 1026 | |
| 1027 | /* : MSC <- MNCC: REL.req; indicate to mobile user tat network intents to release MM */ |
| 1028 | template MNCC_PDU ts_MNCC_REL_req(uint32_t call_id, MNCC_cause cause, |
| 1029 | template charstring fac := omit, template MNCC_useruser uu := omit) := { |
| 1030 | msg_type := MNCC_REL_REQ, |
| 1031 | u := { |
| 1032 | signal := { /* See 24.008 9.3.18 */ |
| 1033 | callref := call_id, |
| 1034 | bearer_cap := omit, |
| 1035 | called := omit, |
| 1036 | calling := omit, |
| 1037 | redirecting := omit, |
| 1038 | connected := omit, |
| 1039 | cause := cause, |
| 1040 | progress := omit, |
| 1041 | useruser := uu, |
| 1042 | facility := fac, |
| 1043 | cccap := omit, |
| 1044 | ssversion := omit, |
| 1045 | clir_sup := 0, |
| 1046 | clir_inv := 0, |
| 1047 | signal := omit, |
| 1048 | keypad := omit, |
| 1049 | more := 0, |
| 1050 | notify := 0, |
| 1051 | emergency := omit, |
| 1052 | imsi := "", |
| 1053 | lchan_type := 0, |
| 1054 | lchan_mode := 0 |
| 1055 | } |
| 1056 | } |
| 1057 | } |
| 1058 | |
| 1059 | /* : MSC -> MNCC: REL.cnf; confirm REL_req */ |
| 1060 | template MNCC_PDU tr_MNCC_REL_cnf(template uint32_t call_id := ?, template MNCC_cause cause := ?, |
| 1061 | template charstring fac := *, template MNCC_useruser uu := *) |
| 1062 | modifies tr_MNCC_REL_ind := { |
| 1063 | msg_type := MNCC_REL_CNF |
| 1064 | }; |
| 1065 | |
| 1066 | /* : MSC <- MNCC: FACILITY.req; request transmission of facility */ |
| 1067 | template MNCC_PDU ts_MNCC_FACILITY_req(uint32_t call_id, charstring fac) := { |
| 1068 | msg_type := MNCC_FACILITY_REQ, |
| 1069 | u := { |
| 1070 | signal := { /* See 24.008 9.3.9 */ |
| 1071 | callref := call_id, |
| 1072 | bearer_cap := omit, |
| 1073 | called := omit, |
| 1074 | calling := omit, |
| 1075 | redirecting := omit, |
| 1076 | connected := omit, |
| 1077 | cause := omit, |
| 1078 | progress := omit, |
| 1079 | useruser := omit, |
| 1080 | facility := fac, |
| 1081 | cccap := omit, |
| 1082 | ssversion := omit, |
| 1083 | clir_sup := 0, |
| 1084 | clir_inv := 0, |
| 1085 | signal := omit, |
| 1086 | keypad := omit, |
| 1087 | more := 0, |
| 1088 | notify := 0, |
| 1089 | emergency := omit, |
| 1090 | imsi := "", |
| 1091 | lchan_type := 0, |
| 1092 | lchan_mode := 0 |
| 1093 | } |
| 1094 | } |
| 1095 | } |
| 1096 | |
| 1097 | /* : MSC -> MNCC: FACILITY.req; indicate reception of facility */ |
| 1098 | template MNCC_PDU tr_MNCC_FACILITY_ind(template uint32_t call_id := ?, template charstring fac := ?) := { |
| 1099 | msg_type := MNCC_FACILITY_IND, |
| 1100 | u := { |
| 1101 | signal := { /* See 24.008 9.3.9 */ |
| 1102 | callref := call_id, |
| 1103 | bearer_cap := omit, |
| 1104 | called := omit, |
| 1105 | calling := omit, |
| 1106 | redirecting := omit, |
| 1107 | connected := omit, |
| 1108 | cause := omit, |
| 1109 | progress := omit, |
| 1110 | useruser := omit, |
| 1111 | facility := fac, |
| 1112 | cccap := omit, |
| 1113 | ssversion := omit, |
| 1114 | clir_sup := 0, |
| 1115 | clir_inv := 0, |
| 1116 | signal := omit, |
| 1117 | keypad := omit, |
| 1118 | more := 0, |
| 1119 | notify := 0, |
| 1120 | emergency := *, |
| 1121 | imsi := ?, |
| 1122 | lchan_type := ?, |
| 1123 | lchan_mode := ? |
| 1124 | } |
| 1125 | } |
| 1126 | } |
| 1127 | |
| 1128 | /* : MSC -> MNCC: START_DTMF.ind; MS has */ |
| 1129 | template MNCC_PDU tr_MNCC_START_DTMF_ind(template uint32_t call_id := ?, template MNCC_keypad keypad := ?) := { |
| 1130 | msg_type := MNCC_START_DTMF_IND, |
| 1131 | u := { |
| 1132 | signal := { /* See 24.008 9.3.24 */ |
| 1133 | callref := call_id, |
| 1134 | bearer_cap := omit, |
| 1135 | called := omit, |
| 1136 | calling := omit, |
| 1137 | redirecting := omit, |
| 1138 | connected := omit, |
| 1139 | cause := omit, |
| 1140 | progress := omit, |
| 1141 | useruser := omit, |
| 1142 | facility := omit, |
| 1143 | cccap := omit, |
| 1144 | ssversion := omit, |
| 1145 | clir_sup := 0, |
| 1146 | clir_inv := 0, |
| 1147 | signal := omit, |
| 1148 | keypad := keypad, |
| 1149 | more := 0, |
| 1150 | notify := 0, |
| 1151 | emergency := *, |
| 1152 | imsi := ?, |
| 1153 | lchan_type := ?, |
| 1154 | lchan_mode := ? |
| 1155 | } |
| 1156 | } |
| 1157 | } |
| 1158 | |
| 1159 | /* : MSC <- MNCC: START_DTMF.rsp; Acknowledge start of DTMF */ |
| 1160 | template MNCC_PDU ts_MNCC_START_DTMF_rsp(uint32_t call_id, MNCC_keypad keypad) := { |
| 1161 | msg_type := MNCC_START_DTMF_RSP, |
| 1162 | u := { |
| 1163 | signal := { /* See 24.008 9.3.25 */ |
| 1164 | callref := call_id, |
| 1165 | bearer_cap := omit, |
| 1166 | called := omit, |
| 1167 | calling := omit, |
| 1168 | redirecting := omit, |
| 1169 | connected := omit, |
| 1170 | cause := omit, |
| 1171 | progress := omit, |
| 1172 | useruser := omit, |
| 1173 | facility := omit, |
| 1174 | cccap := omit, |
| 1175 | ssversion := omit, |
| 1176 | clir_sup := 0, |
| 1177 | clir_inv := 0, |
| 1178 | signal := omit, |
| 1179 | keypad := keypad, |
| 1180 | more := 0, |
| 1181 | notify := 0, |
| 1182 | emergency := omit, |
| 1183 | imsi := "", |
| 1184 | lchan_type := 0, |
| 1185 | lchan_mode := 0 |
| 1186 | } |
| 1187 | } |
| 1188 | } |
| 1189 | |
| 1190 | /* : MSC <- MNCC: START_DTMF.rsp; Acknowledge start of DTMF */ |
| 1191 | template MNCC_PDU ts_MNCC_START_DTMF_rej(uint32_t call_id, MNCC_cause cause) := { |
| 1192 | msg_type := MNCC_START_DTMF_REJ, |
| 1193 | u := { |
| 1194 | signal := { /* See 24.008 9.3.26 */ |
| 1195 | callref := call_id, |
| 1196 | bearer_cap := omit, |
| 1197 | called := omit, |
| 1198 | calling := omit, |
| 1199 | redirecting := omit, |
| 1200 | connected := omit, |
| 1201 | cause := cause, |
| 1202 | progress := omit, |
| 1203 | useruser := omit, |
| 1204 | facility := omit, |
| 1205 | cccap := omit, |
| 1206 | ssversion := omit, |
| 1207 | clir_sup := 0, |
| 1208 | clir_inv := 0, |
| 1209 | signal := omit, |
| 1210 | keypad := omit, |
| 1211 | more := 0, |
| 1212 | notify := 0, |
| 1213 | emergency := omit, |
| 1214 | imsi := "", |
| 1215 | lchan_type := 0, |
| 1216 | lchan_mode := 0 |
| 1217 | } |
| 1218 | } |
| 1219 | } |
| 1220 | |
| 1221 | /* : MSC -> MNCC: STOP_DTMF.ind */ |
| 1222 | template MNCC_PDU tr_MNCC_STOP_DTMF_ind(template uint32_t call_id := ?) := |
| 1223 | tr_MNCC_SIMPLE(MNCC_STOP_DTMF_IND, call_id); /* See 24.008 9.3.29 */ |
| 1224 | |
| 1225 | /* : MSC <- MNCC: STOP_DTMF.rsp; Acknowledge stop of DTMF */ |
| 1226 | template MNCC_PDU ts_MNCC_STOP_DTMF_rsp(uint32_t call_id) := |
| 1227 | ts_MNCC_SIMPLE(MNCC_STOP_DTMF_RSP, call_id); /* See 24.008 9.3.30 */ |
| 1228 | |
| 1229 | /* : MSC -> MNCC: MODIFY.ind; request to start MO in-call modification */ |
| 1230 | template MNCC_PDU tr_MNCC_MODIFY_ind(template uint32_t call_id := ?, template MNCC_bearer_cap bcap := ?) := { |
| 1231 | msg_type := MNCC_MODIFY_IND, |
| 1232 | u := { |
| 1233 | signal := { /* See 24.008 9.3.14 */ |
| 1234 | callref := call_id, |
| 1235 | bearer_cap := bcap, |
| 1236 | called := omit, |
| 1237 | calling := omit, |
| 1238 | redirecting := omit, |
| 1239 | connected := omit, |
| 1240 | cause := omit, |
| 1241 | progress := omit, |
| 1242 | useruser := omit, |
| 1243 | facility := omit, |
| 1244 | cccap := omit, |
| 1245 | ssversion := omit, |
| 1246 | clir_sup := 0, |
| 1247 | clir_inv := 0, |
| 1248 | signal := omit, |
| 1249 | keypad := omit, |
| 1250 | more := 0, |
| 1251 | notify := 0, |
| 1252 | emergency := *, |
| 1253 | imsi := ?, |
| 1254 | lchan_type := ?, |
| 1255 | lchan_mode := ? |
| 1256 | } |
| 1257 | } |
| 1258 | } |
| 1259 | |
| 1260 | /* : MSC <- MNCC: MODIFY.rsp; tespond to MO in-call modification */ |
| 1261 | template MNCC_PDU ts_MNCC_MODIFY_rsp(uint32_t call_id, MNCC_bearer_cap bcap) := { |
| 1262 | msg_type := MNCC_MODIFY_RSP, |
| 1263 | u := { |
| 1264 | signal := { /* See 24.008 9.3.14 */ |
| 1265 | callref := call_id, |
| 1266 | bearer_cap := bcap, |
| 1267 | called := omit, |
| 1268 | calling := omit, |
| 1269 | redirecting := omit, |
| 1270 | connected := omit, |
| 1271 | cause := omit, |
| 1272 | progress := omit, |
| 1273 | useruser := omit, |
| 1274 | facility := omit, |
| 1275 | cccap := omit, |
| 1276 | ssversion := omit, |
| 1277 | clir_sup := 0, |
| 1278 | clir_inv := 0, |
| 1279 | signal := omit, |
| 1280 | keypad := omit, |
| 1281 | more := 0, |
| 1282 | notify := 0, |
| 1283 | emergency := omit, |
| 1284 | imsi := "", |
| 1285 | lchan_type := 0, |
| 1286 | lchan_mode := 0 |
| 1287 | } |
| 1288 | } |
| 1289 | } |
| 1290 | |
| 1291 | /* : MSC <- MNCC: MODIFY.req; request to start MT in-call modification */ |
| 1292 | template MNCC_PDU ts_MNCC_MODIFY_req(uint32_t call_id, MNCC_bearer_cap bcap) := { |
| 1293 | msg_type := MNCC_MODIFY_REQ, |
| 1294 | u := { |
| 1295 | signal := { /* See 24.008 9.3.14 */ |
| 1296 | callref := call_id, |
| 1297 | bearer_cap := bcap, |
| 1298 | called := omit, |
| 1299 | calling := omit, |
| 1300 | redirecting := omit, |
| 1301 | connected := omit, |
| 1302 | cause := omit, |
| 1303 | progress := omit, |
| 1304 | useruser := omit, |
| 1305 | facility := omit, |
| 1306 | cccap := omit, |
| 1307 | ssversion := omit, |
| 1308 | clir_sup := 0, |
| 1309 | clir_inv := 0, |
| 1310 | signal := omit, |
| 1311 | keypad := omit, |
| 1312 | more := 0, |
| 1313 | notify := 0, |
| 1314 | emergency := omit, |
| 1315 | imsi := "", |
| 1316 | lchan_type := 0, |
| 1317 | lchan_mode := 0 |
| 1318 | } |
| 1319 | } |
| 1320 | } |
| 1321 | |
| 1322 | /* : MSC -> MNCC: MODIFY.cnf; MS has responded to MT in-call modification */ |
| 1323 | template MNCC_PDU tr_MNCC_MODIFY_cnf(template uint32_t call_id := ?, |
| 1324 | template MNCC_bearer_cap bcap := ?) := { |
| 1325 | msg_type := MNCC_MODIFY_CNF, |
| 1326 | u := { |
| 1327 | signal := { /* See 24.008 9.3.14 */ |
| 1328 | callref := call_id, |
| 1329 | bearer_cap := bcap, |
| 1330 | called := omit, |
| 1331 | calling := omit, |
| 1332 | redirecting := omit, |
| 1333 | connected := omit, |
| 1334 | cause := omit, |
| 1335 | progress := omit, |
| 1336 | useruser := omit, |
| 1337 | facility := omit, |
| 1338 | cccap := omit, |
| 1339 | ssversion := omit, |
| 1340 | clir_sup := 0, |
| 1341 | clir_inv := 0, |
| 1342 | signal := omit, |
| 1343 | keypad := omit, |
| 1344 | more := 0, |
| 1345 | notify := 0, |
| 1346 | emergency := *, |
| 1347 | imsi := ?, |
| 1348 | lchan_type := ?, |
| 1349 | lchan_mode := ? |
| 1350 | } |
| 1351 | } |
| 1352 | } |
| 1353 | |
| 1354 | /* : MSC <- MNCC: Request transmission of USERINFO to MS */ |
| 1355 | template MNCC_PDU ts_MNCC_USERINFO_req(uint32_t call_id, MNCC_useruser uu, integer more) := { |
| 1356 | msg_type := MNCC_USERINFO_REQ, |
| 1357 | u := { |
| 1358 | signal := { /* See 24.008 9.3.31 */ |
| 1359 | callref := call_id, |
| 1360 | bearer_cap := omit, |
| 1361 | called := omit, |
| 1362 | calling := omit, |
| 1363 | redirecting := omit, |
| 1364 | connected := omit, |
| 1365 | cause := omit, |
| 1366 | progress := omit, |
| 1367 | useruser := uu, |
| 1368 | facility := omit, |
| 1369 | cccap := omit, |
| 1370 | ssversion := omit, |
| 1371 | clir_sup := 0, |
| 1372 | clir_inv := 0, |
| 1373 | signal := omit, |
| 1374 | keypad := omit, |
| 1375 | more := more, |
| 1376 | notify := 0, |
| 1377 | emergency := omit, |
| 1378 | imsi := "", |
| 1379 | lchan_type := 0, |
| 1380 | lchan_mode := 0 |
| 1381 | } |
| 1382 | } |
| 1383 | } |
| 1384 | |
| 1385 | /* : MSC -> MNCC: Indicate reception of USERINFO from MS */ |
| 1386 | template MNCC_PDU tr_MNCC_USERINFO_ind(template uint32_t call_id := ?, template MNCC_useruser uu := ?, |
| 1387 | integer more) := { |
| 1388 | msg_type := MNCC_USERINFO_IND, |
| 1389 | u := { |
| 1390 | signal := { /* See 24.008 9.3.31 */ |
| 1391 | callref := call_id, |
| 1392 | bearer_cap := omit, |
| 1393 | called := omit, |
| 1394 | calling := omit, |
| 1395 | redirecting := omit, |
| 1396 | connected := omit, |
| 1397 | cause := omit, |
| 1398 | progress := omit, |
| 1399 | useruser := uu, |
| 1400 | facility := omit, |
| 1401 | cccap := omit, |
| 1402 | ssversion := omit, |
| 1403 | clir_sup := 0, |
| 1404 | clir_inv := 0, |
| 1405 | signal := omit, |
| 1406 | keypad := omit, |
| 1407 | more := more, |
| 1408 | notify := 0, |
| 1409 | emergency := omit, |
| 1410 | imsi := "", |
| 1411 | lchan_type := 0, |
| 1412 | lchan_mode := 0 |
| 1413 | } |
| 1414 | } |
| 1415 | } |
| 1416 | |
| 1417 | /* : MSC -> MNCC: HOLD.ind; MS requests hold of call */ |
| 1418 | template MNCC_PDU tr_MNCC_HOLD_ind(template uint32_t call_id := ?) := |
| 1419 | tr_MNCC_SIMPLE(MNCC_HOLD_IND, call_id); /* See 24.008 9.3.10 */ |
| 1420 | |
| 1421 | /* : MSC <- MNCC: HOLD.cnf; network confirms hold of call */ |
| 1422 | template MNCC_PDU ts_MNCC_HOLD_cnf(uint32_t call_id) := |
| 1423 | ts_MNCC_SIMPLE(MNCC_HOLD_CNF, call_id); /* See 24.008 9.3.11 */ |
| 1424 | |
| 1425 | /* : MSC <- MNCC: HOLD.rej; network rejects hold of call */ |
| 1426 | template MNCC_PDU ts_MNCC_HOLD_rej(uint32_t call_id, MNCC_cause cause) := { |
| 1427 | msg_type := MNCC_HOLD_REJ, |
| 1428 | u := { |
| 1429 | signal := { /* See 24.008 9.3.12 */ |
| 1430 | callref := call_id, |
| 1431 | bearer_cap := omit, |
| 1432 | called := omit, |
| 1433 | calling := omit, |
| 1434 | redirecting := omit, |
| 1435 | connected := omit, |
| 1436 | cause := cause, |
| 1437 | progress := omit, |
| 1438 | useruser := omit, |
| 1439 | facility := omit, |
| 1440 | cccap := omit, |
| 1441 | ssversion := omit, |
| 1442 | clir_sup := 0, |
| 1443 | clir_inv := 0, |
| 1444 | signal := omit, |
| 1445 | keypad := omit, |
| 1446 | more := 0, |
| 1447 | notify := 0, |
| 1448 | emergency := omit, |
| 1449 | imsi := "", |
| 1450 | lchan_type := 0, |
| 1451 | lchan_mode := 0 |
| 1452 | } |
| 1453 | } |
| 1454 | } |
| 1455 | |
| 1456 | /* : MSC -> MNCC: RETRIEVE.ind; MS requests retrieval of held call */ |
| 1457 | template MNCC_PDU tr_MNCC_RETRIEVE_ind(template uint32_t call_id := ?) := |
| 1458 | tr_MNCC_SIMPLE(MNCC_RETRIEVE_IND, call_id); /* See 24.008 9.3.20 */ |
| 1459 | |
| 1460 | /* : MSC <- MNCC: RETRIEVE.cnf; network confirms retrieve of call */ |
| 1461 | template MNCC_PDU ts_MNCC_RETRIEVE_cnf(uint32_t call_id) := |
| 1462 | ts_MNCC_SIMPLE(MNCC_RETRIEVE_CNF, call_id); /* See 24.008 9.3.21 */ |
| 1463 | |
| 1464 | /* : MSC <- MNCC: RETRIEVE.rej; network rejects retrieve of call */ |
| 1465 | template MNCC_PDU ts_MNCC_RETRIEVE_rej(uint32_t call_id, MNCC_cause cause) |
| 1466 | modifies ts_MNCC_HOLD_rej := { /* See 24.008 9.3.22 */ |
| 1467 | msg_type := MNCC_RETRIEVE_REJ |
| 1468 | } |
| 1469 | |
| 1470 | |
| 1471 | template MNCC_PDU ts_MNCC_SIMPLE_RTP(MNCC_MsgType msg_type, uint32_t call_id) := { |
| 1472 | msg_type := msg_type, |
| 1473 | u := { |
| 1474 | rtp := { |
| 1475 | callref := call_id, |
| 1476 | ip := 0, |
| 1477 | rtp_port := 0, |
| 1478 | payload_type := 0, |
| 1479 | payload_msg_type := 0 |
| 1480 | } |
| 1481 | } |
| 1482 | } |
| 1483 | |
| 1484 | /* MSC <- MNCC: RTP_CREATE.req; request creation of RTP */ |
| 1485 | template MNCC_PDU ts_MNCC_RTP_CREATE(uint32_t call_id) := ts_MNCC_SIMPLE_RTP(MNCC_RTP_CREATE, call_id); |
| 1486 | |
| 1487 | /* MSC -> MNCC: RTP_CREATE.rsp; acknowledge creation of RTP (stating MSC side IP/Port) */ |
| 1488 | template MNCC_PDU tr_MNCC_RTP_CREATE(template uint32_t call_id := ?) := { |
| 1489 | msg_type := MNCC_RTP_CREATE, |
| 1490 | u := { |
| 1491 | rtp := { |
| 1492 | callref := call_id, |
| 1493 | ip := ?, |
| 1494 | rtp_port := ?, |
| 1495 | payload_type := ?, |
| 1496 | payload_msg_type := ? |
| 1497 | } |
| 1498 | } |
| 1499 | } |
| 1500 | |
| 1501 | /* MSC <- MNCC: RTP_CONNECT.req; request connect of RTP */ |
| 1502 | template MNCC_PDU ts_MNCC_RTP_CONNECT(uint32_t call_id, uint32_t ip, uint32_t rtp_port, uint32_t pt) := { |
| 1503 | msg_type := MNCC_RTP_CONNECT, |
| 1504 | u := { |
| 1505 | rtp := { |
| 1506 | callref := call_id, |
| 1507 | ip := ip, |
| 1508 | rtp_port := rtp_port, |
| 1509 | payload_type := pt, |
| 1510 | payload_msg_type := 0 |
| 1511 | } |
| 1512 | } |
| 1513 | } |
| 1514 | |
| 1515 | /* MSC <- MNCC: RTP_FREE.req; request connect of RTP */ |
| 1516 | template MNCC_PDU ts_MNCC_RTP_FREE(uint32_t call_id) := ts_MNCC_SIMPLE_RTP(MNCC_RTP_FREE, call_id); |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 1517 | |
Harald Welte | 251b52b | 2018-01-17 13:58:16 +0100 | [diff] [blame] | 1518 | function f_mncc_get_call_id(MNCC_PDU pdu) return uint32_t { |
| 1519 | if (ischosen(pdu.u.rtp)) { |
| 1520 | return pdu.u.rtp.callref; |
| 1521 | } else if (ischosen(pdu.u.data)) { |
| 1522 | return pdu.u.data.callref; |
| 1523 | } else if (ischosen(pdu.u.signal)) { |
| 1524 | return pdu.u.signal.callref; |
| 1525 | } else { |
| 1526 | setverdict(fail, "Unable to determine Callref for MNCC", pdu); |
| 1527 | self.stop |
| 1528 | } |
| 1529 | } |
| 1530 | |
Harald Welte | 474fd7d | 2017-12-29 16:01:39 +0100 | [diff] [blame] | 1531 | } with { encode "RAW" ; variant "FIELDORDER(msb)" } |