]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_sdp_rtp: Don't wait for ICE if not negotiated
authorTorrey Searle <torrey@voxbone.com>
Thu, 5 Mar 2020 09:08:54 +0000 (10:08 +0100)
committerTorrey Searle <tsearle@gmail.com>
Mon, 9 Mar 2020 12:32:43 +0000 (06:32 -0600)
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

res/res_pjsip_sdp_rtp.c

index fb249a7f2e433ef95a8882ca55044454b4fc44ed..b299a3fd5f75db32a8b802111278fe2060bcc4ef 100644 (file)
@@ -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;
        }