From 086ddb748bccf36a769fdf8f4525906bc4120e5a Mon Sep 17 00:00:00 2001 From: jakubkarolczyk <51345687+jakubkarolczyk@users.noreply.github.com> Date: Fri, 4 Dec 2020 12:23:19 +0000 Subject: [PATCH] Update call.c If the consecutive answer is from different media endpoint, then we need to check if rtcp-mux was offered initially by the client --- daemon/call.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 4dcb54966a..d010782556 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1653,6 +1653,11 @@ static void __rtcp_mux_logic(const struct sdp_ng_flags *flags, struct call_media if (flags->opmode == OP_ANSWER) { /* default is to go with the client's choice, unless we were instructed not * to do that in the offer (see below) */ + + /* if the consecutive answer is from different media endpoint, then we need to check if rtcp-mux was offered initially by client */ + if (MEDIA_ISSET(media, RTCP_MUX)) + return; + if (!MEDIA_ISSET(other_media, RTCP_MUX_OVERRIDE)) bf_copy_same(&media->media_flags, &other_media->media_flags, MEDIA_FLAG_RTCP_MUX);