[MERGED] osmo-ttcn3-hacks[master]: BSSMAP_Templates: Define various ASSIGNMENT related template...

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
Fri Dec 15 13:31:20 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: BSSMAP_Templates: Define various ASSIGNMENT related templates/constants
......................................................................


BSSMAP_Templates: Define various ASSIGNMENT related templates/constants

Change-Id: Id4f98120dbedf1a4fd5fb34df0d638eb08d7c3cb
---
M library/BSSMAP_Templates.ttcn
1 file changed, 42 insertions(+), 0 deletions(-)

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



diff --git a/library/BSSMAP_Templates.ttcn b/library/BSSMAP_Templates.ttcn
index 0a86765..071c66d 100644
--- a/library/BSSMAP_Templates.ttcn
+++ b/library/BSSMAP_Templates.ttcn
@@ -316,8 +316,15 @@
 	}
 }
 
+const OCT1 ChRate_ANY := '00'O;
 const OCT1 ChRate_TCHF	:= '08'O;
 const OCT1 ChRate_TCHH	:= '09'O;
+const OCT1 ChRate_TCHForH_Fpref := '0A'O;
+const OCT1 ChRate_TCHForH_Hpref := '0B'O;
+const OCT1 ChRate_TCHForH_Fpref_nochg := '1A'O;
+const OCT1 ChRate_TCHForH_Hpref_nochg := '1B'O;
+const OCT1 ChRate_TCHForH := '0F'O;
+const OCT1 ChRate_TCHForH_nochg := '1F'O;
 
 template (value) BSSMAP_IE_ChannelType ts_BSSMAP_IE_ChannelType := {
 	elementIdentifier := '0B'O,	/* overwritten */
@@ -327,6 +334,36 @@
 	channelRateAndType := ChRate_TCHF,
 	speechId_DataIndicator := '01'O	/* FRv1 */
 }
+
+template (value) BSSMAP_IE_ChannelType ts_BSSMAP_IE_ChannelTypeCTM modifies ts_BSSMAP_IE_ChannelType := {
+	speechOrDataIndicator := '0100'B	/* speech + CTM */
+}
+
+template (value) BSSMAP_IE_ChannelType ts_BSSMAP_IE_ChannelTypeCSD := {
+	elementIdentifier := '0B'O,	/* overwritten */
+	lengthIndicator := 0,		/* overwritten */
+	speechOrDataIndicator := '0010'B,	/* data */
+	spare1_4 := '0000'B,
+	channelRateAndType := ChRate_TCHF,
+	speechId_DataIndicator := '10'O	/* 9600 bps / transparent */
+}
+
+template (value) BSSMAP_IE_ChannelType ts_BSSMAP_IE_ChannelTypeSIGNAL := {
+	elementIdentifier := '0B'O,	/* overwritten */
+	lengthIndicator := 0,		/* overwritten */
+	speechOrDataIndicator := '0011'B,	/* data */
+	spare1_4 := '0000'B,
+	channelRateAndType := ChRate_ANY,
+	speechId_DataIndicator := '00'O	/* spare */
+}
+
+template (value) BSSMAP_IE_EncryptionInformation ts_BSSMAP_IE_EncrInfo(OCT8 kc, OCT1 algs := '05'O) := {
+	elementIdentifier := '0A'O,
+	lengthIndicator := 0,	/* overwritten */
+	permittedAlgorithms := algs,
+	key := kc
+}
+
 
 template (value) BSSMAP_IE_CircuitIdentityCode ts_BSSMAP_IE_CIC(uint11_t span, uint5_t ts) := {
 	elementIdentifier := '01'O,	/* overwritten */
@@ -342,6 +379,11 @@
 	uDPPortValue := udp_port
 }
 
+template (value) BSSMAP_IE_KC128 ts_BSSMAP_IE_Kc128(OCT16 kc128) := {
+	elementIdentifier := '83'O,
+	kC128_Value := kc128
+}
+
 template PDU_BSSAP
 ts_BSSMAP_AssignmentReq(template BSSMAP_IE_CircuitIdentityCode cic := omit,
 			template BSSMAP_IE_AoIP_TransportLayerAddress aoip := omit)

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id4f98120dbedf1a4fd5fb34df0d638eb08d7c3cb
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