summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--library/L3_Templates.ttcn10
1 files changed, 9 insertions, 1 deletions
diff --git a/library/L3_Templates.ttcn b/library/L3_Templates.ttcn
index 3011919..bc0e797 100644
--- a/library/L3_Templates.ttcn
+++ b/library/L3_Templates.ttcn
@@ -873,6 +873,14 @@ template PDU_ML3_NW_MS tr_ML3_MT_LU_Rej(template OCT1 cause := ?) := {
}
}
+private function f_id_type_or_any(template CmIdentityType id_type) return template bitstring {
+ if (istemplatekind(id_type, "?")) {
+ return ?;
+ } else {
+ return int2bit(enum2int(valueof(id_type)), 3);
+ }
+}
+
template PDU_ML3_NW_MS tr_ML3_MT_MM_ID_Req(template CmIdentityType id_type := ?) := {
discriminator := '0101'B,
tiOrSkip := {
@@ -883,7 +891,7 @@ template PDU_ML3_NW_MS tr_ML3_MT_MM_ID_Req(template CmIdentityType id_type := ?)
identityRequest := {
messageType := '011000'B,
nsd := '00'B,
- identityType := int2bit(enum2int(valueof(id_type)), 3),
+ identityType := f_id_type_or_any(id_type),
spare1_5 := ?
}
}