diff --git a/webrtc/WebRtcTransport.cpp b/webrtc/WebRtcTransport.cpp index a3528fd2..1d4642af 100644 --- a/webrtc/WebRtcTransport.cpp +++ b/webrtc/WebRtcTransport.cpp @@ -544,8 +544,9 @@ void WebRtcTransportImp::onCheckAnswer(RtcSession &sdp) { m.rtcp_addr.reset(); m.rtcp_addr.address = m.addr.address; - GET_CONFIG(uint16_t, local_port, Rtc::kPort); - m.rtcp_addr.port = local_port; + GET_CONFIG(uint16_t, udp_port, Rtc::kPort); + GET_CONFIG(uint16_t, tcp_port, Rtc::kTcpPort); + m.rtcp_addr.port = udp_port ? udp_port : tcp_port; m.port = m.rtcp_addr.port; sdp.origin.address = m.addr.address; }