[asterisk-bugs] [Asterisk 0013853]: mwi activates for more than one mailbox if they have the same mailbox name but different contexts.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 3 13:03:55 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13853 
====================================================================== 
Reported By:                vicks1
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   13853
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-11-06 20:11 CST
Last Modified:              2009-03-03 13:03 CST
====================================================================== 
Summary:                    mwi activates for more than one mailbox if they have
the same mailbox name but different contexts.
Description: 
this is due to asterisk only checking the X-Asterisk-VM-Mailbox header and
ignoring X-Asterisk-VM-Context when polling for mwis to activate. As such,
two different mailboxes have the same name in different contexts, both will
activate if a message is received in either which one of the mailboxes.

i have created a patch which i will submit ASAP.
====================================================================== 

---------------------------------------------------------------------- 
 (0101102) lmadsen (administrator) - 2009-03-03 13:03
 http://bugs.digium.com/view.php?id=13853#c101102 
---------------------------------------------------------------------- 
Seems the real issue here is something beyond even just the headers as I
can't load more than a single user with the same name in the
voicemail.conf, even if they are under different VM contexts. Here is the
output I get with 3 different contexts and users:

*CLI> voicemail show users
Context    Mbox  User                      Zone       NewMsg
[Mar  3 14:00:32] WARNING[1681]: app_voicemail.c:1190 messagecount: IMAP
user not set for mailbox general
default    general New User                                 -1
default    1000  Leif Madsen Default                  466474496
xyz        1001  Leif Madsen                          466474496
abc        1002  Leif Madsen                          466474496


But if I change the 1002 user in the [abc] context to 1001 (under the same
context) I get:

*CLI> voicemail show users
Context    Mbox  User                      Zone       NewMsg
[Mar  3 14:01:22] WARNING[1722]: app_voicemail.c:1190 messagecount: IMAP
user not set for mailbox general
default    general New User                                 -1
default    1000  Leif Madsen Default                  318031296
xyz        1001  Leif Madsen                          318031296


My configuration follows:

imapserver = localhost
imapport = 143
imapflags = novalidate-cert
format = wav
searchcontexts = yes
expungeonhangup = yes
listen-control-forward-key = 3
listen-control-reverse-key = 1
listen-control-pause-key = 2
listen-control-restart-key = 0
listen-control-stop-key = 456789*#
sendvoicemail = yes
review = yes
authuser = lmadsen
authpassword = XXXXXXXX

[default]
1000 => 1000,Leif Madsen Default,,,imapuser=lmadsen,imappassword=XXXXXX

[xyz]
1001 => 1000,Leif Madsen,,,imapuser=lmadsen,imappassword=XXXXXX

[abc]
1001 => 1000,Leif Madsen,,,imapuser=lmadsen,imappassword=XXXXXX 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-03 13:03 lmadsen        Note Added: 0101102                          
======================================================================




More information about the asterisk-bugs mailing list