fix MGCP_Test.TC_one_crcx_loopback_rtp_implicit expectations

osmo-mgw should not respond to unknown peers. The test expected the
wrong thing, because of an old hack for 3G voice. Fix that.

Related: OS#6424
Change-Id: Ibe2ee59d1ed2c25ffef7e8534c172ac190b4983d
This commit is contained in:
Neels Hofmeyr 2024-03-27 01:49:52 +01:00 committed by neels
parent 4a011fa0db
commit 649eba0456
1 changed files with 16 additions and 5 deletions

View File

@ -1931,11 +1931,22 @@ module MGCP_Test {
stats := f_rtpem_stats_get(RTPEM[0]);
if (stats.num_pkts_tx != stats.num_pkts_rx) {
setverdict(fail);
}
if (stats.bytes_payload_tx != stats.bytes_payload_rx) {
setverdict(fail);
if (one_phase) {
/* osmo-mgw knows both local and remote RTP address. Expect all packets to be reflected. */
if (stats.num_pkts_tx != stats.num_pkts_rx) {
setverdict(fail);
}
if (stats.bytes_payload_tx != stats.bytes_payload_rx) {
setverdict(fail);
}
} else {
/* osmo-mgw knows only the local RTP address. Expect no packets to be reflected. */
if (stats.num_pkts_rx > 0) {
setverdict(fail, "stats.num_pkts_rx=", stats.num_pkts_rx, ": osmo-mgw should not send RTP packets to an arbitrary peer");
}
if (stats.bytes_payload_rx > 0) {
setverdict(fail);
}
}
f_rtpem_stats_err_check(stats);