neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36458?usp=email )


Change subject: msc: add mi arg to f_perform_lu()
......................................................................

msc: add mi arg to f_perform_lu()

Allow testing Location Updating by TMSI MI.

Prepares for TC_lu_tmsi_noauth_notmsi in
If10b9987395670b084ff8ad6d1f033ff46896d75

Change-Id: I31aad8eb751528f7237a892702e87ee5855cabbb
---
M msc/BSC_ConnectionHandler.ttcn
1 file changed, 22 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/58/36458/1

diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index df3a1c8..422390a 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -833,9 +833,15 @@
        }
 }

-function f_perform_lu()
+function f_perform_lu(template (omit) MobileIdentityLV use_mi := omit)
 runs on BSC_ConnHdlr {
-       var PDU_ML3_MS_NW l3_lu := f_build_lu_imsi(g_pars.imsi)
+       var MobileIdentityLV mi;
+       if (istemplatekind(use_mi, "omit")) {
+               mi := valueof(ts_MI_IMSI_LV(g_pars.imsi));
+       } else {
+               mi := valueof(use_mi);
+       }
+       var PDU_ML3_MS_NW l3_lu := f_build_lu(mi);
        var PDU_DTAP_MT dtap_mt;

        /* tell GSUP dispatcher to send this IMSI to us */

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36458?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: I31aad8eb751528f7237a892702e87ee5855cabbb
Gerrit-Change-Number: 36458
Gerrit-PatchSet: 1
Gerrit-Owner: neels <[email protected]>
Gerrit-MessageType: newchange

Reply via email to