blob: faaa4032cb0b1cde2fad9f6d2c6cffd9001fc066 [file] [log] [blame]
Pau Espin Pedrol4ff118a2022-07-28 17:37:47 +02001/* ECBE (REST) interface client of osmo-cbc test suite in TTCN-3
2 * (C) 2022 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
3 * All rights reserved.
4 *
5 * Released under the terms of GNU General Public License, Version 2 or
6 * (at your option) any later version.
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11module CBS_Message {
12
13import from Osmocom_Types all;
14
15import from BSSAP_Types all;
16import from BSSMAP_Templates all;
17
18import from CBSP_Types all;
19
Pau Espin Pedroldb247f82022-08-01 17:55:22 +020020/* Messages used for coordination between handlers and test_CT: */
21const charstring COORD_MSG_CONNECTED := "COORD_MSG_CONNECTED";
22
23
Pau Espin Pedrol4ff118a2022-07-28 17:37:47 +020024type record CBS_Message {
25 uint16_t msg_id,
26 uint16_t ser_nr,
27 uint16_t old_ser_nr optional,
28 BSSMAP_FIELD_CellIdentificationList cell_list,
Pau Espin Pedrolad5d2db2022-08-03 14:02:02 +020029 uint8_t channel_ind optional,
Pau Espin Pedrol4ff118a2022-07-28 17:37:47 +020030 CBSP_Category category,
31 uint16_t rep_period,
32 uint16_t num_bcast_req,
33 uint8_t dcs,
34 CBS_MessageContents content
35};
36type record CBS_MessageContent {
37 octetstring payload,
38 uint8_t user_len
39};
40type record of CBS_MessageContent CBS_MessageContents;
41
Pau Espin Pedrolad5d2db2022-08-03 14:02:02 +020042function msg_id_is_etws(uint16_t msg_id) return boolean
43{
44 if (msg_id >= 4352 and msg_id <= 4359) {
45 return true;
46 }
47 return false;
48}
49
Pau Espin Pedrol4ff118a2022-07-28 17:37:47 +020050}