asterisk/channels/sip
Matthew Jordan ae179ac5b4 Only re-create an SRTP session when needed
In r356604, SRTP handling was fixed to accomodate multiple crypto keys in an
SDP offer and the ability to re-create an SRTP session when the crypto keys
changed.  In certain circumstances - most notably when a phone is put on
hold after having been bridged for a significant amount of time - the act
of re-creating the SRTP session causes problems for certain models of phones.
The patch committed in r356604 always re-created the SRTP session regardless
of whether or not the cryptographic keys changed.  Since this is technically
not necessary, this patch modifies the behavior to only re-create the SRTP
session if Asterisk detects that the remote key has changed.  This allows
models of phones that do not handle the SRTP session changing to continue
to work, while also providing the behavior needed for those phones that do
re-negotiate cryptographic keys.

(issue ASTERISK-20194)
Reported by: Nicolo Mazzon
Tested by: Nicolo Mazzon

Review: https://reviewboard.asterisk.org/r/2099
........

Merged revisions 372709 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 372710 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 372711 from http://svn.asterisk.org/svn/asterisk/branches/11


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@372712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-09-09 01:28:31 +00:00
..
include Clean up doxygen warnings 2012-08-30 14:23:28 +00:00
config_parser.c Multiple revisions 370769-370771 2012-08-03 21:52:57 +00:00
dialplan_functions.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
reqresp_parser.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
sdp_crypto.c Only re-create an SRTP session when needed 2012-09-09 01:28:31 +00:00
security_events.c Clean up chan_sip 2012-07-31 19:10:41 +00:00
srtp.c Clean up doxygen warnings 2012-08-30 14:23:28 +00:00
utils.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00