fixeria has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36454?usp=email )

 (

1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted 
one.
 )Change subject: ran-emu: allow receiving Paging without a TMSI
......................................................................

ran-emu: allow receiving Paging without a TMSI

Fix access of non-present tMSI.* if tMSI == omit, allowing to match
incoming Paging with a UnitData receiver that has no TMSI.

Change-Id: I1bdf3488be0f8d4f0905665c4ba642f9468b9777
---
M library/RAN_Emulation.ttcnpp
1 file changed, 17 insertions(+), 2 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified




diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp
index 5b2f190..fbe921d 100644
--- a/library/RAN_Emulation.ttcnpp
+++ b/library/RAN_Emulation.ttcnpp
@@ -504,8 +504,11 @@
 runs on RAN_Emulation_CT return template PDU_BSSAP {
        if (match(bssap, tr_BSSMAP_Paging)) {
                var RAN_ConnHdlr client := null;
-               client := f_imsi_table_find(bssap.pdu.bssmap.paging.iMSI.digits,
-                                          
bssap.pdu.bssmap.paging.tMSI.tmsiOctets);
+               var template OCT4 tmsi := omit;
+               if (ispresent(bssap.pdu.bssmap.paging.tMSI)) {
+                       tmsi := bssap.pdu.bssmap.paging.tMSI.tmsiOctets;
+               }
+               client := 
f_imsi_table_find(bssap.pdu.bssmap.paging.iMSI.digits, tmsi);
                if (client != null) {
                        log("CommonBssmapUnitdataCallback: IMSI/TMSI found in 
table, dispatching to ",
                                client);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36454?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1bdf3488be0f8d4f0905665c4ba642f9468b9777
Gerrit-Change-Number: 36454
Gerrit-PatchSet: 3
Gerrit-Owner: neels <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to