mirror of https://github.com/asterisk/asterisk
res_rtp_asterisk.c: Fix DTLS packet drop when TURN loopback re-injection occurs before ICE candidate check
When TURN is configured in rtp.conf, pjproject re-injects TURN packets via 127.0.0.1 (the loopback address). The DTLS packet handler checks the source address against the ICE active candidate list before the loopback address substitution runs, causing the packet to be silently dropped as the source 127.0.0.1 is not in the candidate list. Fix by performing the loopback address substitution before the ICE candidate source check in the DTLS path, mirroring the logic already present in the non-DTLS RTP path. Fixes: #1795 UserNote: WebRTC calls using TURN configured in rtp.conf (turnaddr, turnusername, turnpassword) will now correctly complete DTLS/SRTP negotiation. Previously all DTLS packets were silently dropped due to the loopback re-injection address not being in the ICE active candidate list.releases/23
parent
c630bdbf60
commit
07f68a15fd
Loading…
Reference in new issue