From b0f15c964764a8df75db085a303fa02532870392 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 13 May 2022 20:45:04 +0800 Subject: [PATCH] =?UTF-8?q?sctp=E5=85=B3=E9=97=AD=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=97=B6,=E5=85=B3=E9=97=ADdatachannel=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/Sdp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webrtc/Sdp.cpp b/webrtc/Sdp.cpp index 70e83730..4ed16d26 100644 --- a/webrtc/Sdp.cpp +++ b/webrtc/Sdp.cpp @@ -1591,8 +1591,13 @@ RETRY: if (type == TrackApplication) { RtcMedia answer_media = offer_media; answer_media.role = mathDtlsRole(offer_media.role); +#ifdef ENABLE_SCTP answer_media.direction = matchDirection(offer_media.direction, configure.direction); answer_media.candidate = configure.candidate; + +#else + answer_media.direction = RtpDirection::inactive; +#endif ret->media.emplace_back(answer_media); return; }