lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38918?usp=email )
Change subject: L3_Templates: Add required TLVs for RA Request when moving from 4G to 2G ......................................................................
L3_Templates: Add required TLVs for RA Request when moving from 4G to 2G
Add ts_PtmsiTypeTV and ts_RoutingAreaIdentification2TLV
Change-Id: I6d735be76aab0b5228502e3e19804bcc98864829 --- M library/L3_Templates.ttcn 1 file changed, 33 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/18/38918/1
diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn index 6b7baae..181fde4 100644 --- a/library/L3_Templates.ttcn +++ b/library/L3_Templates.ttcn @@ -2935,6 +2935,39 @@ } }
+ +const BIT1 c_GMM_PMTSI_TYPE_NATIVE := '0'B; +const BIT1 c_GMM_PMTSI_TYPE_MAPPED := '1'B; + +function ts_PtmsiTypeTV(template (omit) BIT1 val) return template (omit) P_TMSI_TypeTV { + var template (omit) P_TMSI_TypeTV ret; + if (istemplatekind(val, "omit")) { + return omit; + } else { + ret := { + pTMSI_TypeValue := valueof(val), + spare := '000'B, + elementIdentifier := '1110'B + } + return ret; + } +} + +function ts_RoutingAreaIdentification2TLV(template (omit) OCT6 val) return template (omit) RoutingAreaIdentification2TLV { + var template (omit) RoutingAreaIdentification2TLV ret; + if (istemplatekind(val, "omit")) { + return omit; + } else { + ret := { + elementIdentifier := '1B'O, + lengthIndicator := 6, + routingAreaIdentification2 := valueof(val) + } + return ret; + } +} + + template (value) PDU_L3_MS_SGSN ts_GMM_DET_REQ_MO(BIT3 dtt := c_GMM_DTT_MO_GPRS, boolean power_off := false, template (omit) OCT4 p_tmsi := omit,