aboutsummaryrefslogtreecommitdiffstats
path: root/msc
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-09-17 18:19:08 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-11-04 00:17:41 +0100
commitd9d835db4a297ead7a70329f6a9720db3e4132aa (patch)
tree8afd95d6495f381ccd8d3d96a99fdaa7a51f8670 /msc
parentf7630a6498f0a2f4c71b8382ed69f5028621c3d2 (diff)
msc-test: improve error log on Assignment RTP port mismatch
Before this, if an Assignment Request contains an unexpected Transport Layer Address, the test completely rejects the Assignment Request. Instead, accept any tla in the Assignment, and compare the expected tla in the Assignment's interleave action. Thus we directly get logging hinting at the tla instead of a T_guard timeout. Change-Id: I04847c10d6c3bf9e04cfda6e343dfd4a65be71a5
Diffstat (limited to 'msc')
-rw-r--r--msc/BSC_ConnectionHandler.ttcn9
1 files changed, 8 insertions, 1 deletions
diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index fb2d8883..5b0a1251 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -1044,12 +1044,19 @@ runs on BSC_ConnHdlr {
}
//[g_pars.ran_is_geran] BSSAP.receive(tr_BSSMAP_AssignmentReq(omit, tla_ass)) -> value bssap {
- [] BSSAP.receive(tr_BSSMAP_AssignmentReq(omit, tla_ass)) -> value bssap {
+ [] BSSAP.receive(tr_BSSMAP_AssignmentReq(omit)) -> value bssap {
log("f_mo_call_establish 4: rx Assignment Request");
var BSSMAP_IE_AoIP_TransportLayerAddress tla;
var BSSMAP_IE_SpeechCodec codec;
var BSSMAP_IE_Osmo_OsmuxCID osmuxCID;
+ if (tla_ass != bssap.pdu.bssmap.assignmentRequest.aoIPTransportLayer) {
+ log("Expected:", tla_ass);
+ log("Got:", bssap.pdu.bssmap.assignmentRequest.aoIPTransportLayer);
+ setverdict(fail, "MSC sent Assignment Request with unexpected AoIP Transport Layer IE");
+ mtc.stop;
+ }
+
tla := valueof(ts_BSSMAP_IE_AoIP_TLA4(f_inet_addr(cpars.bss_rtp_ip), cpars.bss_rtp_port));
codec := valueof(ts_BSSMAP_IE_SpeechCodec({ts_CodecFR}));
if (cpars.use_osmux) {