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


Change subject: SGSN: BSSGP_ConnHdlr: f_gmm_attach(): allow the SGSN to request 
the IMEI
......................................................................

SGSN: BSSGP_ConnHdlr: f_gmm_attach(): allow the SGSN to request the IMEI

The IMEI might be requested when the GMM Attach happen.

Change-Id: Id49c9e6ef7517a6a831315ac1f9915c50b88beb6
---
M sgsn/BSSGP_ConnHdlr.ttcn
1 file changed, 5 insertions(+), 0 deletions(-)



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

diff --git a/sgsn/BSSGP_ConnHdlr.ttcn b/sgsn/BSSGP_ConnHdlr.ttcn
index 4bd16bb..6cfc17e 100644
--- a/sgsn/BSSGP_ConnHdlr.ttcn
+++ b/sgsn/BSSGP_ConnHdlr.ttcn
@@ -533,6 +533,7 @@
        var RoutingAreaIdentificationV old_ra_val;
        var template (value) PDU_L3_MS_SGSN attach_req;
        var PDU_L3_SGSN_MS l3_mt;
+       var default di;

        if (istemplatekind(old_ra, "omit")) {
                old_ra_val := f_random_RAI();
@@ -553,6 +554,9 @@
        /* Expect SGSN to perform LU with HLR */
        as_gmm_gsup_lu_isd();

+       /* In case IMEI get requested */
+       di := activate(as_mm_identity(ran_index));
+
        l3_mt := f_receive_l3(tr_GMM_ATTACH_ACCEPT('001'B, ?, ?), ran_index);
        f_process_attach_accept(l3_mt.msgs.gprs_mm.attachAccept, ran_index);

@@ -570,6 +574,7 @@
         * arrived before it. This results in a test case failure.
         * Delay execution by 50 ms
         */
+       deactivate(di);
        f_sleep(0.05);
 }


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

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id49c9e6ef7517a6a831315ac1f9915c50b88beb6
Gerrit-Change-Number: 38398
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <[email protected]>

Reply via email to