aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-01-07 16:27:04 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2022-01-07 18:50:15 +0100
commit9de384a28cd67e39c900d56da8cd1034d9a4e2a2 (patch)
tree3b7c06c331241d8ebc50fdb38e779281b0ef7f57 /tests
parent3a02d298049149f126fecc51e8445392cdb3b950 (diff)
Avoid setting audio codec if not available during assignment_complete (MDCX)
RAB Assignment Complete contains no codec info, hence assignment_complete.codec is not set and assignment_complete.codec_present is false. As a result a wrong value is passed to rtp_stream_set_codec. This fixes osmo-msc sending "a=rtpmap:112 AMR/8000/1" during MDCX in the RAT-side connection of the call leg after having properly sent VND.3GPP.IUFP/16000 in CRCX. Change-Id: Ic028d35893d29f7d72f22f82ef89695229c9b01b
Diffstat (limited to 'tests')
-rw-r--r--tests/msc_vlr/msc_vlr_tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.c b/tests/msc_vlr/msc_vlr_tests.c
index fbd254018..378f84ac8 100644
--- a/tests/msc_vlr/msc_vlr_tests.c
+++ b/tests/msc_vlr/msc_vlr_tests.c
@@ -1007,6 +1007,7 @@ void ms_sends_assignment_complete(enum mgcp_codecs assigned_codec)
ran_dec = (struct ran_msg){
.msg_type = RAN_MSG_ASSIGNMENT_COMPLETE,
.assignment_complete = {
+ .codec_present = true,
.codec = assigned_codec,
},
};