ignore CANCEL request after having already received final response to INVITE
authorDavid Vossel <dvossel@digium.com>
Tue, 22 Jun 2010 20:37:05 +0000 (20:37 +0000)
committerDavid Vossel <dvossel@digium.com>
Tue, 22 Jun 2010 20:37:05 +0000 (20:37 +0000)
commit1509737580b7786504df2a1f1840536b8f1641a5
tree29f1a143f9f986c1e4ba81a4ea1fe9540ab0710b
parent3a875d8524d440adf54708cc3e36fd56fffea412
ignore CANCEL request after having already received final response to INVITE

RFC 3261 section 9 states that a CANCEL has no effect on a
request to a UAS that has already given a final response.  This
patch checks to make sure there is a pending invite before
allowing a CANCEL request to be processed, otherwise it responds
to the CANCEL with a "481 Call/Transaction Does Not Exist".

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

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