neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36455?usp=email )
Change subject: msc: f_expect_paging(): fix by_tmsi arg ......................................................................
msc: f_expect_paging(): fix by_tmsi arg
The by_tmsi argument so far had no effect. But I actually need exactly this in upcoming MSC_Tests.TC_lu_tmsi_noauth_notmsi(): expect a Paging with explicitly no TMSI included.
Related: SYS#6860 OS#4721 Change-Id: I9434745b7faeb738caafed8080b9f7b1a6a8079a --- M msc/BSC_ConnectionHandler.ttcn 1 file changed, 19 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/55/36455/1
diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn index b3d915c..ed4bed5 100644 --- a/msc/BSC_ConnectionHandler.ttcn +++ b/msc/BSC_ConnectionHandler.ttcn @@ -1359,8 +1359,12 @@
function f_expect_paging(boolean by_tmsi := true) runs on BSC_ConnHdlr { + var template OCT4 tmsi := *; + if (not by_tmsi) { + tmsi := omit; + } if (g_pars.ran_is_geran) { - BSSAP.receive(tr_BSSMAP_Paging(g_pars.imsi)); + BSSAP.receive(tr_BSSMAP_Paging(g_pars.imsi, tmsi)); } else { BSSAP.receive(tr_RANAP_Paging(cs_domain, imsi_hex2oct(g_pars.imsi))); }