[asterisk-bugs] [Asterisk 0017153]: chan_sip sends to peer mwi notify for wrong mailbox

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Apr 8 15:54:56 CDT 2010


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17153 
====================================================================== 
Reported By:                Jamuel
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17153
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            random
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.18 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-04-08 15:29 CDT
Last Modified:              2010-04-08 15:54 CDT
====================================================================== 
Summary:                    chan_sip sends to peer mwi notify  for wrong mailbox
Description: 
A SIP peer can be sent the wrong message count for an MWI subscription. 

In 1.6.1 we're seeing an issue where a peer is receiving the message count
for another peer's mailbox:

Example:
Peer A has messages 10/8 (as verfied by counting messages in filesystem
and confirmed by voicemail show users)
Peer B as messages 0/0 (as verfied by counting no messages in filesystem
and confirmed by voicemail show users)

on an MWI SUBSCRIBE by Peer B to Peer B's mailbox, * returns Peer A's
message count in the NOTIFY to Peer B.

Mailbox polling is turned on in app_voicemail so you were to then go and
add a message to Peer B's INBOX via the linux filesystem (e.g. touch
/var/spool/asterisk/voicemail/default/PEERB/INBOX/msg0000.txt) then after
the mailbox poll interval, Peer B's message count is correctly reflected
(1/0) in the subsequent NOTIFY (as well as voicemail show users in the
cli). 

Next if you delete this message, * correctly sends a NOTIFY reflecting
(0/0) to Peer B. 

But then eventually after some time has elapsed (not sure if its
time-based or some other event triggering yet) Peer B starts getting Peer
A's message count again.

In all cases CLI "voicemail show users" shows Peer B's message count
correctly (0/0).  This leads me to guess that there is an issue with the
MWI caching that chan_sip implement (get_cached_mwi).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-08 15:54 pabelanger     Severity                 major => minor      
======================================================================




More information about the asterisk-bugs mailing list