mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
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
This commit is contained in:
@@ -1019,6 +1019,7 @@ struct sip_pvt {
|
||||
AST_STRING_FIELD(rdnis); /*!< Referring DNIS */
|
||||
AST_STRING_FIELD(redircause); /*!< Referring cause */
|
||||
AST_STRING_FIELD(theirtag); /*!< Their tag */
|
||||
AST_STRING_FIELD(theirprovtag); /*!< Provisional their tag, used when evaluating responses to invites */
|
||||
AST_STRING_FIELD(tag); /*!< Our tag for this session */
|
||||
AST_STRING_FIELD(username); /*!< [user] name */
|
||||
AST_STRING_FIELD(peername); /*!< [peer] name, not set if [user] */
|
||||
|
Reference in New Issue
Block a user