Noah Miller
2009-Apr-06 18:48 UTC
[asterisk-users] IMAP Voicemail - can't get messages. Arrgh!
Hi - I just deployed a system using IMAP Voicemail. During my testing, voicemail worked fine. I could check vm from the phone, and the messages would get marked as read, or I could read the messages in a mail client, and the phone's mwi light would turn off. Very neat. I'm not exactly sure when things got munged up, but something broke. I can record messages with Voicemail(), but now when I access an IMAP mailbox using VoicemailMain(), it always says there are no messages, even when there clearly are (unread) messages in the IMAP mailbox. I've also got the asterisk GUI running on this system, and its status page (retrieved via manager, I believe, or maybe "voicemail show users") shows the correct message counts. I tried debugging manager messages to see how it was getting the message counts, but I didn't get any useful output. Does anyone know a better way (any way) to debug issues with IMAP Voicemail? I do see an error on the CLI: ERROR[20010]: app_voicemail.c:2026 mm_log: IMAP Error: Quota not available on this IMAP server Here's some background info: Asterisk: 1.6.0.8 IMAP Server: dovecot 1.0.7 c-client: UW imap2007e Config Files: voicemail.conf [general] format = wav49 serveremail = asterisk at rosecompanies.com fromstring = ${VM_CALLERID} emailsubject = New voicemail. Length: ${VM_DUR} emailbody = ${VM_NAME}:\n\nYou have a new voicemail message. You currently have ${VM_MSGNUM} messages in your Inbox.\n\nFrom:\t\t${VM_CALLERID}\$ maxsecs = 600 minsecs = 4 skipms = 3000 maxsilence = 10 silencethreshold = 128 maxlogins = 20 userscontext = default imapserver = localhost imapfolder = INBOX authuser = asterisk authpassword = xxxxxxx maxgreet = 360 operator = yes maxmessage = 300 minmessage = 4 saycid = no sayduration = no envelope = no review = yes users.conf (a typical user): [02] username = 02 transfer = yes mailbox = 02 call-limit = 100 fullname = Test User cid_number = 02 context = DLPN_MainUsers hasvoicemail = yes vmsecret = xxxxxxx email imapuser = allison hassip = yes hasiax = no host = dynamic nat = no hasdirectory = yes dtmfmode = rfc2833 threewaycalling = no callwaiting = no hasmanager = no hasagent = no canreinvite = no insecure = no pickupgroup autoprov = yes label = 02 macaddress = 0004f2000000 linenumber LINEKEYS = 1 secret = xxxxxxx disallow = all extensions.conf: exten = 000,1,VoicemailMain(s${CALLERID(num)}@default) Thanks! Noah
Leif Madsen
2009-Apr-06 19:33 UTC
[asterisk-users] IMAP Voicemail - can't get messages. Arrgh!
Noah Miller wrote:> I just deployed a system using IMAP Voicemail. During my testing, > voicemail worked fine. I could check vm from the phone, and the > messages would get marked as read, or I could read the messages in a > mail client, and the phone's mwi light would turn off. Very neat. > > I'm not exactly sure when things got munged up, but something broke. > I can record messages with Voicemail(), but now when I access an IMAP > mailbox using VoicemailMain(), it always says there are no messages, > even when there clearly are (unread) messages in the IMAP mailbox.This appears to be the same issue as was resolved in bug 14685. If you use the latest version of Asterisk 1.6.0 branch then you shouldn't have that issue anymore. svn co http://svn.digium.com/svn/asterisk/branches/1.6.0 asterisk-1.6.0-vanilla cd asterisk-1.6.0-vanilla ./configure && make install Or wait for Asterisk 1.6.0.10 which will incorporate the changes since 1.6.0.8; the recent 1.6.0.9 release that went out only incorporates the changes to 1.6.0.7 plus the security release in 1.6.0.8, and a merge issue that crept into the 1.6.0 branch from trunk in 1.6.0.9. Thanks! -- Leif Madsen. http://www.leifmadsen.com http://www.oreilly.com/catalog/asterisk