From 3bf28e79af7946fca345207ae32bce1c4f10f5b2 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 5 Jun 2014 10:53:36 +0200 Subject: [PATCH] Do not include rtcp-xr and rtcp-fb attributes for inactive medias in the SDP. --- coreapi/bellesip_sal/sal_sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/bellesip_sal/sal_sdp.c b/coreapi/bellesip_sal/sal_sdp.c index 650235399..268fbc480 100644 --- a/coreapi/bellesip_sal/sal_sdp.c +++ b/coreapi/bellesip_sal/sal_sdp.c @@ -266,11 +266,11 @@ static void stream_description_to_sdp ( belle_sdp_session_description_t *session } } - if ((stream->proto == SalProtoRtpAvpf) || (stream->proto == SalProtoRtpSavpf)) { + if ((rtp_port != 0) && ((stream->proto == SalProtoRtpAvpf) || (stream->proto == SalProtoRtpSavpf))) { add_rtcp_fb_attributes(media_desc, md, stream); } - if (stream->rtcp_xr.enabled == TRUE) { + if ((rtp_port != 0) && (stream->rtcp_xr.enabled == TRUE)) { char sastr[1024] = {0}; char mastr[1024] = {0}; size_t saoff = 0;