[MERGED] osmo-ttcn3-hacks[master]: BSC_Tests / RSL_Types: Add enumerated for RSL Cause value

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Dec 14 17:31:43 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: BSC_Tests / RSL_Types: Add enumerated for RSL Cause value
......................................................................


BSC_Tests / RSL_Types: Add enumerated for RSL Cause value

this looks much more human-readable in the logs...

Change-Id: I2bc3de37a3059cc16c6293df45e5c4d620422502
---
M bsc/BSC_Tests.ttcn
M library/RSL_Types.ttcn
2 files changed, 44 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index c8016d7..b70c63a 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -377,7 +377,7 @@
 	dt := f_est_dchan('23'O, 23, '00010203040506'O);
 
 	/* simulate CONN FAIL IND */
-	f_ipa_tx(0, ts_RSL_CONN_FAIL_IND(dt.rsl_chan_nr, 0));
+	f_ipa_tx(0, ts_RSL_CONN_FAIL_IND(dt.rsl_chan_nr, RSL_ERR_RADIO_LINK_FAIL));
 	/* TODO: different cause values? */
 
 	/* expect BSC to disable the channel */
diff --git a/library/RSL_Types.ttcn b/library/RSL_Types.ttcn
index e3740eb..3e9baaa 100644
--- a/library/RSL_Types.ttcn
+++ b/library/RSL_Types.ttcn
@@ -382,7 +382,49 @@
 	}
 
 	/* 9.3.26 */
-	type uint7_t RSL_Cause;
+	type enumerated RSL_Cause {
+		/* normal event */
+		RSL_ERR_RADIO_IF_FAIL		('00'O),
+		RSL_ERR_RADIO_LINK_FAIL		('01'O),
+		RSL_ERR_HANDOVER_ACC_FAIL	('02'O),
+		RSL_ERR_TALKER_ACC_FAIL		('03'O),
+		RSL_ERR_OM_INTERVENTION		('07'O),
+		RSL_ERR_NORMAL_UNSPEC		('0f'O),
+		RSL_ERR_T_MSRFPCI_EXP		('18'O),
+		/* resource unavailable */
+		RSL_ERR_EQUIPMENT_FAIL		('20'O),
+		RSL_ERR_RR_UNAVAIL		('21'O),
+		RSL_ERR_TERR_CH_FAIL		('22'O),
+		RSL_ERR_CCCH_OVERLOAD		('23'O),
+		RSL_ERR_ACCH_OVERLOAD		('24'O),
+		RSL_ERR_PROCESSOR_OVERLOAD	('25'O),
+		RSL_ERR_BTS_NOT_EQUIPPED	('27'O),
+		RSL_ERR_REMOTE_TRAU_FAILURE	('28'O),
+		RSL_ERR_NOTIF_OVERFLOW		('29'O),
+		RSL_ERR_RES_UNAVAIL		('2f'O),
+		/* service or option not available */
+		RSL_ERR_TRANSC_UNAVAIL		('30'O),
+		RSL_ERR_SERV_OPT_UNAVAIL	('3f'O),
+		/* service or option not implemented */
+		RSL_ERR_ENCR_UNIMPL		('40'O),
+		RSL_ERR_SERV_OPT_UNIMPL		('4f'O),
+		/* invalid message */
+		RSL_ERR_RCH_ALR_ACTV_ALLOC	('50'O),
+		RSL_ERR_INVALID_MESSAGE		('5f'O),
+		/* protocol error */
+		RSL_ERR_MSG_DISCR		('60'O),
+		RSL_ERR_MSG_TYPE		('61'O),
+		RSL_ERR_MSG_SEQ			('62'O),
+		RSL_ERR_IE_ERROR		('63'O),
+		RSL_ERR_MAND_IE_ERROR		('64'O),
+		RSL_ERR_OPT_IE_ERROR		('65'O),
+		RSL_ERR_IE_NONEXIST		('66'O),
+		RSL_ERR_IE_LENGTH		('67'O),
+		RSL_ERR_IE_CONTENT		('68'O),
+		RSL_ERR_PROTO			('6f'O),
+		/* interworking */
+		RSL_ERR_INTERWORKING		('7f'O)
+	};
 	type record RSL_IE_Cause {
 		uint8_t		len,
 		uint1_t		e,

-- 
To view, visit https://gerrit.osmocom.org/5363
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2bc3de37a3059cc16c6293df45e5c4d620422502
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list