Add DTLS-SRTP support to chan_pjsip
authorKinsey Moore <kmoore@digium.com>
Tue, 23 Jul 2013 13:52:06 +0000 (13:52 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 23 Jul 2013 13:52:06 +0000 (13:52 +0000)
commit98504fec8ee8fde7eb2a6378046f3d35bfba961a
treeef7c9014248d864c5c1e2787b632c420d81efdee
parentf6a227a45111d5d0e021de64799f62da6d8ae7ac
Add DTLS-SRTP support to chan_pjsip

This patch introduces DTLS-SRTP support to chan_pjsip and the options
necessary to configure it including an option to allow choosing between
32 and 80 byte SRTP tag lengths.

During the implementation and testing of this patch, three other bugs
were found and their fixes are included with this patch. The two in
chan_sip were a segfault relating to DTLS setup and mistaken call
rejection. The third bug fix prevents chan_pjsip from attempting to
perform bridge optimization between two endpoints if either of them is
running any form of SRTP.

Review: https://reviewboard.asterisk.org/r/2683/
(closes issue ASTERISK-21419)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_gulp.c
channels/chan_sip.c
include/asterisk/res_sip.h
include/asterisk/res_sip_session.h
res/res_sip.c
res/res_sip/sip_configuration.c
res/res_sip_sdp_rtp.c
res/res_sip_session.c