]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Don't send presencestate information if the state is invalid
authorMatthew Jordan <mjordan@digium.com>
Sat, 16 Feb 2013 16:31:30 +0000 (16:31 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 16 Feb 2013 16:31:30 +0000 (16:31 +0000)
commitf4110cb0e30c651a546b472939d023d4dabec244
tree01a3be47b9e3c6e688430c0f2777168cf451dbe3
parent78bec50f829026d2d2e6693e2a72d61562fdffce
Don't send presencestate information if the state is invalid

Previously, presencestate information was sent whenever the state was not
NOT_SET. When r381594 actually returned INVALID presence state in all the
places it was supposed to, it caused chan_sip to start adding presence
state information to NOTIFY requests that it previously would not have
added. chan_sip shouldn't be adding presence state information when the
provider is in an invalid state; users can't set the state to invalid and
an invalid state always implies that the provider is in an error condition.

(issue AST-1084)
........

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

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