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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 13 11:13:17 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
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:                     feedback
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-13 11:13 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).
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016660 [patch] [regression] [patch] chan_sip d...
====================================================================== 

---------------------------------------------------------------------- 
 (0120325) rain (reporter) - 2010-04-13 11:13
 https://issues.asterisk.org/view.php?id=17153#c120325 
---------------------------------------------------------------------- 
Jamuel: I was seeing this issue before I applied the patch in 0016607. I
suspect that if you apply the diff attached to that bug (or upgrade to
1.6.1.18, which includes that bug fix), your problem will go away. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-13 11:13 rain           Note Added: 0120325                          
======================================================================




More information about the asterisk-bugs mailing list