aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-08-09 02:16:49 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2022-08-09 02:28:32 +0200
commitfc7d678043a7772061f28c60840d45f1935d9b84 (patch)
tree7d49a3d981410c5d25fa636c351a7cb120cb5b90
parent92e57464aeaf3ba054f6e2cd689a357c628d5afa (diff)
assignment: clear codec when none was included
-rw-r--r--src/libmsc/msc_a.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmsc/msc_a.c b/src/libmsc/msc_a.c
index c75a700fd..8eaece37b 100644
--- a/src/libmsc/msc_a.c
+++ b/src/libmsc/msc_a.c
@@ -1429,6 +1429,8 @@ static void msc_a_up_call_assignment_complete(struct msc_a *msc_a, const struct
/* Update codecs filter with the codec chosen by Assignment */
cc_trans->cc.codecs.assignment = m->sdp;
+ } else {
+ cc_trans->cc.codecs.assignment = (struct sdp_audio_codec){};
}
rtp_stream_set_remote_addr(rtps_to_ran, &ac->assignment_complete.remote_rtp);