pespin has uploaded this change for review.
library/S1AP_Functions: Support routing rx E-RABModifyResponse to correct ConnHdlr
Match has to be done independently both with max_br and without max_br
optional IE explicitly, since the logic introduced time ago in
f_tr_S1AP_RABModifyReq() broke with newer titan releases which are
conforming better to TTCN-3 specs. As a result, the "*" inserted in the
array is converted by titan to a "?" [1].
[1] https://gitlab.eclipse.org/eclipse/titan/titan.core/-/work_items/798
Related: SYS#8357
Change-Id: Ic14c0990fcb885d39a107719fb9f520c88594c58
---
M library/S1AP_Functions.ttcn
1 file changed, 19 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/96/44196/1
diff --git a/library/S1AP_Functions.ttcn b/library/S1AP_Functions.ttcn
index d9af50e..ef83d72 100644
--- a/library/S1AP_Functions.ttcn
+++ b/library/S1AP_Functions.ttcn
@@ -52,6 +52,9 @@
case (tr_S1AP_RABSetupReq) {
return im.value_.E_RABSetupRequest.protocolIEs[1].value_.ENB_UE_S1AP_ID;
}
+ case ((tr_S1AP_RABModifyReq(max_br := omit), tr_S1AP_RABModifyReq(max_br := ?))) {
+ return im.value_.E_RABModifyRequest.protocolIEs[1].value_.ENB_UE_S1AP_ID;
+ }
/* TODO */
}
} else if (ischosen(s1ap.successfulOutcome)) {
@@ -110,6 +113,9 @@
case (tr_S1AP_RABSetupReq) {
return im.value_.E_RABSetupRequest.protocolIEs[0].value_.MME_UE_S1AP_ID;
}
+ case ((tr_S1AP_RABModifyReq(max_br := omit), tr_S1AP_RABModifyReq(max_br := ?))) {
+ return im.value_.E_RABModifyRequest.protocolIEs[0].value_.MME_UE_S1AP_ID;
+ }
/* TODO */
}
} else if (ischosen(s1ap.successfulOutcome)) {
@@ -184,6 +190,19 @@
}
return omit;
}
+ case ((tr_S1AP_RABModifyReq(max_br := omit), tr_S1AP_RABModifyReq(max_br := ?))) {
+ var E_RABModifyRequest msg := im.value_.E_RABModifyRequest;
+ for (i := 0; i < lengthof(msg.protocolIEs); i := i+1) {
+ if (msg.protocolIEs[i].id == id_E_RABToBeModifiedListBearerModReq) {
+ var E_RABToBeModifiedListBearerModReq rab_req := msg.protocolIEs[i].value_.E_RABToBeModifiedListBearerModReq;
+ for (j := 0; j < lengthof(rab_req); j := j+1) {
+ var E_RABToBeModifiedItemBearerModReq it := rab_req[j].value_.E_RABToBeModifiedItemBearerModReq;
+ return it.nAS_PDU;
+ }
+ }
+ }
+ return omit;
+ }
}
}
return omit;
To view, visit change 44196. To unsubscribe, or for help writing mail filters, visit settings.