summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-04-15 14:39:05 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2021-04-19 11:38:18 +0200
commitee8cec808a2b4face6817b7fed6c5e351f438ca9 (patch)
treeb81cca9326978ecd37f5916b4de23aa80b0392ff
parentd5ba6cef4f5caa394f5a18cf65a4d3d660b5d8b2 (diff)
BSSMAP: Support setting LastUsedPLMNId in CommonId msg
-rw-r--r--library/BSSMAP_Templates.ttcn19
1 files changed, 17 insertions, 2 deletions
diff --git a/library/BSSMAP_Templates.ttcn b/library/BSSMAP_Templates.ttcn
index a3235026..458fa48d 100644
--- a/library/BSSMAP_Templates.ttcn
+++ b/library/BSSMAP_Templates.ttcn
@@ -1110,6 +1110,20 @@ template BSSMAP_IE_IMSI tr_BSSMAP_Imsi(template hexstring imsi_digits) := {
digits := imsi_digits
}
+template (value) BSSAMAP_IE_LastUsedEUTRANPLMNId ts_BSSMAP_LastUsedEUTRANPLMNId(OCT3 mcc_mnc) := {
+ elementIdentifier := '95'O,
+ mcc_mnc := mcc_mnc
+}
+
+function f_ts_BSSMAP_LastUsedEUTRANPLMNId(template (omit) OCT3 mcc_mnc)
+ return template (omit) BSSAMAP_IE_LastUsedEUTRANPLMNId {
+ if (not istemplatekind(mcc_mnc, "omit")) {
+ return ts_BSSMAP_LastUsedEUTRANPLMNId(valueof(mcc_mnc));
+ } else {
+ return omit;
+ }
+}
+
template BSSMAP_FIELD_CellIdentificationList ts_BSSMAP_CIL_noCell := {
cIl_noCell := ''O
}
@@ -1658,7 +1672,8 @@ modifies tr_BSSAP_BSSMAP := {
}
}
-template PDU_BSSAP ts_BSSMAP_CommonId(hexstring imsi_digits)
+template PDU_BSSAP ts_BSSMAP_CommonId(hexstring imsi_digits,
+ template (omit) OCT3 last_eutran_plmn := omit)
modifies ts_BSSAP_BSSMAP := {
pdu := {
bssmap := {
@@ -1667,7 +1682,7 @@ modifies ts_BSSAP_BSSMAP := {
iMSI := ts_BSSMAP_Imsi(imsi_digits),
sNAAccessInformation := omit,
selectedPLMNId := omit,
- lastUsedEUTRANPLMNId := omit
+ lastUsedEUTRANPLMNId := f_ts_BSSMAP_LastUsedEUTRANPLMNId(last_eutran_plmn)
}
}
}