Summary:ASTERISK-19518: Voice Mail with IMAP storage reports erroneous error message in FreePBX configurations
Reporter:Slava Bendersky (volga629)Labels:
Date Opened:2012-03-12 18:05:11Date Closed:2015-12-09 22:58:02.000-0600
Versions:10.2.0 Frequency of
Environment:2.6.18-274.18.1.el5 Centos 5.7Attachments:( 0) extensions.conf
( 1) vm_general.inc
( 2) vm.png
( 3) voicemail.conf
Description:When configured IMAP from GUI interface it add two lines in extension config. If those lines are empty or voice mail is disabled it start flooding log with those errors. The cause for this error is line mailbox=2000@device under sip or iax config file, if voice mail not configured it should comment out this line in ext config file, but gui doesn't and this cause for error.
Comments:By: Matt Jordan (mjordan) 2012-03-13 10:46:47.513-0500

Slava: can you post the actual DEBUG log, including the ERROR message?  The voicemail.conf would be helpful as well.

As I stated in #asterisk, the fact that FreePBX is doing some 'interesting' things with their voicemail configuration that works with a File backend does not mean that it will exhibit the exact same behavior with an ODBC or IMAP backend.  We can, at least, see if the ERROR message can be toned down based on their configuration.

By: Slava Bendersky (volga629) 2012-03-13 12:09:03.590-0500

Here the debug.

[2012-03-13 13:05:54] DEBUG[12811] app_voicemail_imapstorage.c: Before mail_open, server: {imap.xxxxxxxx:993/imap/authuser=volga629@xxxxxxxx/ssl/novalidate-cert/user=volga629@xxxxxxxx}VoiceMail, box:0
[2012-03-13 13:05:54] DEBUG[12811] app_voicemail_imapstorage.c: IMAP Info: Reusing connection to xxxxxxxx/user="volga629@xxxxx"
[2012-03-13 13:05:54] DEBUG[12811] app_voicemail_imapstorage.c: Entering EXISTS callback for message 6
[2012-03-13 13:05:54] DEBUG[12811] app_voicemail_imapstorage.c: User volga629@xxxxx mailbox set for update.
[2012-03-13 13:05:54] DEBUG[12811] app_voicemail_imapstorage.c: Entering NOTIFY callback, errflag is 0, string is [HIGHESTMODSEQ 17676] modseq tracked on this mailbox
[2012-03-13 13:05:54] DEBUG[12811] app_voicemail_imapstorage.c: IMAP Info: [HIGHESTMODSEQ 17676] modseq tracked on this mailbox
[2012-03-13 13:05:54] DEBUG[12811] app_voicemail_imapstorage.c: Mailbox is set to 102@device
[2012-03-13 13:05:54] ERROR[12811] app_voicemail_imapstorage.c: Couldn't find mailbox 102 in context device

Here voicemail.conf

#include vm_general.inc
#include vm_email.inc


101 => xxxxx,Slava,volga629@xxxxxxxxx,,imapuser=volga629@xxxxxx|imappassword=xxxxxx|attach=yes|saycid=yes|envelope=yes|delete=no

File vm_general.inc

imapserver=imap.xxxxx   ; IMAP server location
imapport=993                    ; port IMAP server listens to
imapflags=ssl/novalidate-cert   ; flags required for connecting
expungeonhangup=yes             ; delete messages on hangup
pollmailboxes=yes               ; used for message waiting indication
pollfreq=30                     ; how often to check for message ch

By: Slava Bendersky (volga629) 2012-03-13 14:37:08.060-0500

Another strange behaviour, that email delivered twice.

By: Matt Jordan (mjordan) 2012-03-14 08:43:50.205-0500

What happens if you set searchcontexts=yes?

By: Slava Bendersky (volga629) 2012-03-14 09:55:04.357-0500

I set search to yes, but still delivery twice.

By: Matt Jordan (mjordan) 2012-03-19 08:45:54.146-0500

I know this is a FreePBX configuration, but can you attach the voicemail.conf, extensions.conf, and - if its used - users.conf - that cause this error to occur?  I think we need to get a better handle on how they're attempting to configure voicemail and the dialplan.

By: Slava Bendersky (volga629) 2012-03-20 21:42:44.374-0500

Requested files

By: Matt Jordan (mjordan) 2012-04-24 14:39:06.337-0500

Please use the Send Back button when you've provided feedback - otherwise it falls off the radar.

By: Slava Bendersky (volga629) 2012-04-24 22:23:43.860-0500

Ok, I will pay attention.

By: Slava Bendersky (volga629) 2015-12-09 22:57:03.202-0600

Hello Matt,
Thanks for the help. I never was be able find  Send Back button. But issue has being resolved.

in extension setting was set Mailbox = extensions@default. That was cause for warning. As soon as I removed console is clean no warnings.

By: Slava Bendersky (volga629) 2015-12-09 22:58:02.855-0600

Incorrect settings for extension with disabled voice mail.