chan_sip: Reject calls without prior SDP on 200 OK
authorJonathan Rose <jrose@digium.com>
Wed, 11 Sep 2013 20:03:19 +0000 (20:03 +0000)
committerJonathan Rose <jrose@digium.com>
Wed, 11 Sep 2013 20:03:19 +0000 (20:03 +0000)
commit187802eeb2c157cb3fdaf1dc9747b0f14a5d97ac
treec5c226d888d5e6b46798e613d26256d02b5d1a1d
parent9b3e0b095e3e65e8d7fa8209fe78fd737a4239c6
chan_sip: Reject calls without prior SDP on 200 OK

If we receive a 200 OK without SDP, we will now check to see if
the remote address has been established for that channel's RTP
session and if the to tag for that channel has changed from
the most recent to tag in a response less than 200.
If either a change has been made since the last to-tag was
received or the remote address is unset, then we will drop
the call.

(closes issue ASTERISK-22424)
Reported by: Jonathan Rose
Review: https://reviewboard.asterisk.org/r/2827/diff/#index_header
........

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

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

Merged revisions 398837 from http://svn.asterisk.org/svn/asterisk/branches/12

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