Corrected crypto tag in SDP ANSWER for SRTP. (again)
authorDavid M. Lee <dlee@digium.com>
Tue, 29 Jan 2013 17:46:30 +0000 (17:46 +0000)
committerDavid M. Lee <dlee@digium.com>
Tue, 29 Jan 2013 17:46:30 +0000 (17:46 +0000)
commite06cd59e04f4d04cf684f2b79175fddb1207a207
treee0ee42bed45d8f5cc574cb56c843c2698baa5bd2
parent80021f220c2d20f9c19a00ed751442669f0982c2
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
........

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

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