]> git.ipfire.org Git - thirdparty/asterisk.git/commit
When subscribing MWI to an unsolicited mailbox the first notification is incorrect.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 27 Jun 2011 15:37:19 +0000 (15:37 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 27 Jun 2011 15:37:19 +0000 (15:37 +0000)
commit1eb5fcc5a53323dbe1bbedeb56d26156455e4b43
tree3496f272436a9f10838f9bfd00be648cd6f6a36d
parent42633d22f9555896ef164c0841733c99d52c3bb2
When subscribing MWI to an unsolicited mailbox the first notification is incorrect.

A remote peer subscribed to MWI with the unsolicited option and a local
phone subscribed to the remote mailbox.  The notify message-summary events
are sent correctly except for the first one when subscribing, which will
always be 0.  This means the phone MWI indicator will be wrong until the
mailbox read/unread count changes and the event is fired.

Looks like this is a regression from ASTERISK-16149.

* Fix the logic to check the cache and if allowed then fallback to
manually counting mailbox messages.

(closes issue ASTERISK-17997)
Reported by: rsw686
Patches:
      jira_asterisk_17997_v1.8.patch (license #5621) uploaded by rmudgett
Tested by: rsw686

JIRA SWP-3551

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