From: Torrey Searle Date: Thu, 5 Mar 2020 09:08:54 +0000 (+0100) Subject: res_pjsip_sdp_rtp: Don't wait for ICE if not negotiated X-Git-Tag: 16.10.0-rc1~69^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1efd90b72b4e2808aebec0b90e1b283ba3c9d7c7;p=thirdparty%2Fasterisk.git res_pjsip_sdp_rtp: Don't wait for ICE if not negotiated If ICE support is enabled but not negotiated, the rtp->ice structure is not being destroyed. This leads to Asterisk waiting for ICE to complete instead of immediately starting the DTLS handshake, resulting in the call leg having no RTP. ASTERISK-28769 #close Change-Id: I17c137546dc9ecfb9583c24dcf4c2ced8bbd7a27 --- diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c index d652fc4e3a..d7b64ac790 100644 --- a/res/res_pjsip_sdp_rtp.c +++ b/res/res_pjsip_sdp_rtp.c @@ -592,6 +592,7 @@ static void add_ice_to_stream(struct ast_sip_session *session, struct ast_sip_se } if (!session_media->remote_ice) { + ice->stop(session_media->rtp); return; }