aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-04-24 00:30:21 +0200
committerneels <nhofmeyr@sysmocom.de>2022-04-25 21:19:22 +0000
commitace698cdeed3b42345e58a64764f298ba15bd2f2 (patch)
tree80aef70d9b19e0b54e3a689f09796fee51be766f
parent32ef591fee6a5d0548c9c7de893029fb19e3c053 (diff)
bsc: TC_emerg_premption: test RR rel cause
-rw-r--r--bsc/BSC_Tests.ttcn9
1 files changed, 7 insertions, 2 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 33f47966..59b87dde 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -9024,12 +9024,17 @@ testcase TC_emerg_premption() runs on test_CT {
f_ctrl_get_exp_ratectr_abs(IPA_CTRL, "bts", 0, "chreq:total",
chreq_total + NUM_TCHF_PER_BTS + NUM_TCHH_PER_BTS + NUM_SDCCH_PER_BTS);
+ /* Send EST IND for the first TCH, so we get to test the RR release cause */
+ var RslChannelNr first_tch := valueof(t_RslChanNr_Bm(1));
+ var octetstring l3 := '00010203040506'O;
+ f_ipa_tx(0, ts_RSL_EST_IND(first_tch, valueof(ts_RslLinkID_DCCH(0)), l3));
+
/* Send Channel request for emegergency call */
f_ipa_tx(0, ts_RSL_CHAN_RQD('A5'O, 23));
/* Expect the BSC to release one (the first) TCH/F on the BTS */
- var RslChannelNr first_tch := valueof(t_RslChanNr_Bm(1));
- f_expect_chan_rel(0, first_tch, expect_rr_chan_rel := false, expect_rll_rel_req := false);
+ f_expect_chan_rel(0, first_tch, expect_rr_chan_rel := true, expect_rll_rel_req := false,
+ expect_rr_cause := GSM48_RR_CAUSE_PREMPTIVE_REL);
/* Expect the BSC to send activate/assign the channel for the emergency call */
rx_rsl := f_exp_ipa_rx(0, tr_RSL_MsgTypeD(RSL_MT_CHAN_ACTIV));