More GSUP and L3 Templates

Change-Id: I0e9136fc3b8f171934f054ec149d8dd344faa034
This commit is contained in:
Harald Welte 2018-01-21 19:09:08 +01:00
parent ad4c555787
commit f427e8723a
2 changed files with 102 additions and 2 deletions

View File

@ -154,8 +154,16 @@ template GSUP_PDU tr_GSUP_UL_REQ(template hexstring imsi) :=
template GSUP_PDU ts_GSUP_UL_RES(hexstring imsi) :=
ts_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT, { valueof(ts_GSUP_IE_IMSI(imsi)) });
template GSUP_PDU tr_GSUP_ISD_REQ(template hexstring imsi) :=
tr_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_REQUEST, {
template GSUP_PDU ts_GSUP_UL_ERR(hexstring imsi, integer cause) :=
ts_GSUP(OSMO_GSUP_MSGT_UPDATE_LOCATION_ERROR, {
valueof(ts_GSUP_IE_IMSI(imsi)), valueof(ts_GSUP_IE_Cause(cause)) });
template GSUP_PDU ts_GSUP_ISD_REQ(hexstring imsi, hexstring msisdn) :=
ts_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_REQUEST, {
valueof(ts_GSUP_IE_IMSI(imsi)), valueof(ts_GSUP_IE_MSISDN(msisdn)) });
template GSUP_PDU tr_GSUP_ISD_RES(template hexstring imsi) :=
tr_GSUP(OSMO_GSUP_MSGT_INSERT_DATA_RESULT, {
tr_GSUP_IE_IMSI(imsi), * });
@ -181,6 +189,23 @@ template GSUP_IE tr_GSUP_IE_IMSI(template hexstring imsi) := {
}
}
template (value) GSUP_IE ts_GSUP_IE_MSISDN(hexstring msisdn) := {
tag := OSMO_GSUP_MSISDN_IE,
len := 0, /* overwritten */
val := {
msisdn := msisdn
}
}
template GSUP_IE tr_GSUP_IE_MSISDN(template hexstring msisdn) := {
tag := OSMO_GSUP_MSISDN_IE,
len := ?,
val := {
msisdn := msisdn
}
}
template (value) GSUP_IE ts_GSUP_IE_Cause(integer cause) := {
tag := OSMO_GSUP_CAUSE_IE,
len := 0, /* overwritten */

View File

@ -102,6 +102,31 @@ template (value) PDU_ML3_MS_NW ts_CM_SERV_REQ(BIT4 serv_type, MobileIdentityLV m
}
}
template PDU_ML3_NW_MS tr_MT_simple(template BIT4 discr := ?) := {
discriminator := discr,
tiOrSkip := {
skipIndicator := '0000'B
},
msgs := ?
}
template PDU_ML3_NW_MS tr_CM_SERV_ACC := {
discriminator := '0101'B,
tiOrSkip := {
skipIndicator := '0000'B
},
msgs := {
mm := {
cMServiceAccept := {
messageType := '100001'B,
nsd := ?
}
}
}
}
template PDU_ML3_NW_MS tr_CM_SERV_REJ(template OCT1 rej_cause := ?) := {
discriminator := '0101'B,
tiOrSkip := {
@ -225,6 +250,56 @@ modifies ts_ML3_MO := {
}
}
template PDU_ML3_MS_NW ts_ML3_MO_TmsiRealloc_Cmpl modifies ts_ML3_MO := {
msgs := {
mm := {
tmsiReallocComplete := {
messageType := '011011'B,
nsd := '00'B
}
}
}
}
template PDU_ML3_NW_MS tr_ML3_MT_LU_Acc := {
discriminator := '0101'B,
tiOrSkip := {
skipIndicator := '0000'B
},
msgs := {
mm := {
locationUpdateAccept := {
messageType := '000010'B,
nsd := '00'B,
locationAreaIdentification := ?,
mobileIdentityTLV := *,
followOnProceed := *,
cTS_Permission := *,
equivalentPLMNs := *,
emergencyNumberList := *,
perMS_T3212 := *
}
}
}
}
template PDU_ML3_NW_MS tr_ML3_MT_LU_Rej(template OCT1 cause := ?) := {
discriminator := '0101'B,
tiOrSkip := {
skipIndicator := '0000'B
},
msgs := {
mm := {
locationUpdateReject := {
messageType := '000100'B,
nsd := '00'B,
rejectCause := cause,
t3246_Value := *
}
}
}
}
}