]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Corrected crypto tag in SDP ANSWER for SRTP. (again)
authorDavid M. Lee <dlee@digium.com>
Tue, 29 Jan 2013 17:14:51 +0000 (17:14 +0000)
committerDavid M. Lee <dlee@digium.com>
Tue, 29 Jan 2013 17:14:51 +0000 (17:14 +0000)
commit765c1ac0263cbe64b5688bab6321cc4afec269d6
tree832f00f34198fa39d8ee9cc82cfa4fa45a44d873
parentdb03ae6c9ae3b8f375b358de42e4ca1b4389e929
Corrected crypto tag in SDP ANSWER for SRTP. (again)

The original fix (r380043) for getting Asterisk to respond with the correct
tag overlooked some corner cases, and the fact that the same code is in 1.8.

This patch moves the building of the crypto line out of
sdp_crypto_process(). Instead, it merely copies the accepted tag. The call to
sdp_crypto_offer() will build the crypto line in all cases now, using a tag of
"1" in the case of sending offers.

(closes issue ASTERISK-20849)
Reported by: José Luis Millán
Review: https://reviewboard.asterisk.org/r/2295/
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@380350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/sip/sdp_crypto.c