]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Native SIP CCSS sends bad CC cancel SUBSCRIBE message.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 25 May 2011 22:25:18 +0000 (22:25 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 25 May 2011 22:25:18 +0000 (22:25 +0000)
commitb6ed006d329878e232f3599ddcf78f0990159b5f
tree3ad222922ba1bd5a12e886738838af88d18e0404
parent59a41188a88e4f874e045e0c3ddd129161912903
Native SIP CCSS sends bad CC cancel SUBSCRIBE message.

The SUBSCRIBE message used to cancel a CC request has incorrect To/From
SIP headers.  They are reversed and the dialog tags are the same when they
should not be.  If pedantic mode was disabled, then the cancel would have
succeeded despite the incorrect message.

* The SIP_OUTGOING flag was not set correctly for the dialog and I had to
move some CC subscribe handling code as a result.

* Initialized the dialog subscribed type to CALL_COMPLETION earlier.  If a
CC request SUBSCRIBE message comes in and the CC instance is not found,
the 404 response was duplicated.

JIRA AST-568
JIRA SWP-3493

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