]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Use separate SRTP session for RTCP with DTLS 68/2468/3
authorJacek Konieczny <jkonieczny@eggsoft.pl>
Fri, 25 Mar 2016 15:59:05 +0000 (16:59 +0100)
committerJoshua Colp <jcolp@digium.com>
Tue, 29 Mar 2016 14:29:45 +0000 (09:29 -0500)
commit0cfab30b284286b74a4c58b040364b246a9680d7
tree90ca535e3c0dd2b05d31810ae8ebf8181a88b526
parent36d016b1abb6707bfde821ac2407933a447f3d13
res_rtp_asterisk: Use separate SRTP session for RTCP with DTLS

Asterisk uses separate UDP ports for RTP and RTCP traffic and RFC 5764
explicitly states:

  There MUST be a separate DTLS-SRTP session for each distinct pair of
  source and destination ports used by a media session

This means RTP keying material cannot be used for DTLS RTCP, which was
the reason why RTCP encryption would fail.

ASTERISK-25642

Change-Id: I7e8779d8b63e371088081bb113131361b2847e3a
include/asterisk/rtp_engine.h
main/rtp_engine.c
main/sdp_srtp.c
res/res_rtp_asterisk.c