[asterisk-bugs] [Asterisk 0016660]: [patch] [regression] [patch] chan_sip does not check other mailboxes on AST_EVENT_MWI
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jan 20 14:21:51 CST 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16660
======================================================================
Reported By: rain
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 16660
Category: Channels/chan_sip/Subscriptions
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.6.2.1
JIRA:
Regression: Yes
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-01-20 13:51 CST
Last Modified: 2010-01-20 14:21 CST
======================================================================
Summary: [patch] [regression] [patch] chan_sip does not check
other mailboxes on AST_EVENT_MWI
Description:
When chan_sip receives an AST_EVENT_MWI, the callback will always believe
the message counters in the event
(AST_EVENT_IE_NEWMSGS/AST_EVENT_IE_OLDMSGS); however, if the peer receiving
the event has voicemail messages in a different mailbox that it is ALSO
subscribed to, these counters will be wrong (since the callback makes no
attempt to check other mailboxes if event is not NULL.)
The easiest solution to this problem seems to be ignoring the IEs in the
AST_EVENT_MWI event and going right to get_cached_mwi, which appears to
check for MWI events on all subscribed inboxes. The attached patch does
this, but this caused some of my phones to incorrectly show messages
waiting when I restarted Asterisk. From some debug logging I added locally
to get_cached_mwi, it seems that ast_event_get_cached() can return an MWI
event with incorrect data in the NEWMSGS/OLDMSGS IEs while app_voicemail is
loading (e.g. 1 new, 0 old), although a cache query for the same
mailbox at context will (accurately) return 0/7 a moment later. (I'm trying
to debug that.)
Disclaimer on file.
======================================================================
----------------------------------------------------------------------
(0116998) rain (reporter) - 2010-01-20 14:21
https://issues.asterisk.org/view.php?id=16660#c116998
----------------------------------------------------------------------
After some additional testing, it appears that the incorrect AST_EVENT_MWIs
from ast_event_get_cached are not limited to Asterisk startup --
ast_event_get_cached just gave me 0 AST_EVENT_IE_NEWMSGS, 0
AST_EVENT_IE_OLDMSGS for a mailbox showing 1 new message in 'voicemail show
users'.
Issue History
Date Modified Username Field Change
======================================================================
2010-01-20 14:21 rain Note Added: 0116998
======================================================================
More information about the asterisk-bugs
mailing list