[Home]

Summary:ASTERISK-13124: Different IMAP settings for realtime and static config setups
Reporter:George Qualley IV (qualleyiv)Labels:
Date Opened:2008-11-25 23:23:38.000-0600Date Closed:2011-06-07 14:07:55
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail/IMAP
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I've looked at this for a LONG time. If I missed something obvious, please forgive me. I've made every effort not to report something that isn't a bug. First, here's my setup:

I'm running 1.6.1-beta2 with the latest SVN version of Addons 1.6.1. on a PPC XServe running OS X 10.5.5

I'm using IMAP voicemail with individual users/passwords (no master user). Everything is working fine when I pull the voicemail users from a mysql table using the mysql realtime addon. However, when I switch to using a static config file, asterisk can't connect to my mail server:

[Nov 25 22:58:57] WARNING[52389] app_voicemail.c: IMAP Warning: Kerberos error: No credentials cache found (try running kinit) for mail.midwestdjs.com
[Nov 25 22:58:57] ERROR[52389] app_voicemail.c: IMAP Error: IMAP Authentication cancelled
[Nov 25 22:58:57] ERROR[52389] app_voicemail.c: Houston we have a problem - IMAP mailstream is NULL
[Nov 25 22:58:57] WARNING[52389] app_voicemail.c: IMAP Warning: Kerberos error: No credentials cache found (try running kinit) for mail.midwestdjs.com
[Nov 25 22:59:00] WARNING[52389] app_voicemail.c: IMAP Warning: Retrying CRAM-MD5 authentication after Error authenticating
[Nov 25 22:59:03] WARNING[52389] app_voicemail.c: IMAP Warning: Retrying CRAM-MD5 authentication after Error authenticating

Normally, when I'm using realtime, I still get this error occassionally:

[Nov 25 22:58:57] WARNING[52389] app_voicemail.c: IMAP Warning: Kerberos error: No credentials cache found (try running kinit) for mail.midwestdjs.com

But everything still works out.

A little more about my mailserver setup: the only authentication methods I have turned on is CRAM-MD5 and Kerberos. I've tried almost every combination of settings including no-tls, novalidate-cert and setting imapport=993 (which is the port I use for authentication on my normal mail clients). That gives me the following error:

[Nov 25 22:19:08] ERROR[51662] app_voicemail.c: IMAP Error: Connection failed to mail.midwestdjs.com,993: Operation timed out
[Nov 25 22:19:08] ERROR[51662] app_voicemail.c: Can't connect to imap server {mail.midwestdjs.com:993/imap/user=tlbetsey}INBOX

When using realtime, it looks to me like it tries to authenticate on port 143, fails and then does something else (not sure what exactly) which succeeds. When I switch to a static config, it seems to stop doing that.

In any case, I'm sure I haven't given all the information necessary. Just ask and I'll post more info ASAP. Thanks in advance for the assistance.
Comments:By: Leif Madsen (lmadsen) 2008-12-17 09:52:11.000-0600

Thanks for the bug report. I've assigned to putnopvut to take a look at the issue when he has a moment.

By: George Qualley IV (qualleyiv) 2008-12-17 11:47:20.000-0600

Thanks for looking into it! Please let me know if you need any additional information.

By: Digium Subversion (svnbot) 2008-12-17 11:52:46.000-0600

Repository: asterisk
Revision: 165142

U   trunk/apps/app_voicemail.c

------------------------------------------------------------------------
r165142 | mmichelson | 2008-12-17 11:52:46 -0600 (Wed, 17 Dec 2008) | 10 lines

Use the create_vm_state_from_user function in a place where
it was not being used before. Also, I've moved the urgent
folder check in messagecount() up a bit so that the flow is
a bit better.

This was something I noticed while taking a look at issue
ASTERISK-13124, although I don't think this is the underlying cause
of the issue.


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=165142

By: Digium Subversion (svnbot) 2008-12-17 11:54:58.000-0600

Repository: asterisk
Revision: 165144

_U  branches/1.6.0/
U   branches/1.6.0/apps/app_voicemail.c

------------------------------------------------------------------------
r165144 | mmichelson | 2008-12-17 11:54:58 -0600 (Wed, 17 Dec 2008) | 24 lines

Merged revisions 165142-165143 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165142 | mmichelson | 2008-12-17 11:52:50 -0600 (Wed, 17 Dec 2008) | 10 lines

Use the create_vm_state_from_user function in a place where
it was not being used before. Also, I've moved the urgent
folder check in messagecount() up a bit so that the flow is
a bit better.

This was something I noticed while taking a look at issue
ASTERISK-13124, although I don't think this is the underlying cause
of the issue.


........
r165143 | mmichelson | 2008-12-17 11:53:37 -0600 (Wed, 17 Dec 2008) | 3 lines

And actually assign the function to a pointer...


........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=165144

By: Digium Subversion (svnbot) 2008-12-17 11:56:49.000-0600

Repository: asterisk
Revision: 165146

_U  branches/1.6.1/
U   branches/1.6.1/apps/app_voicemail.c

------------------------------------------------------------------------
r165146 | mmichelson | 2008-12-17 11:56:49 -0600 (Wed, 17 Dec 2008) | 24 lines

Merged revisions 165142-165143 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r165142 | mmichelson | 2008-12-17 11:52:50 -0600 (Wed, 17 Dec 2008) | 10 lines

Use the create_vm_state_from_user function in a place where
it was not being used before. Also, I've moved the urgent
folder check in messagecount() up a bit so that the flow is
a bit better.

This was something I noticed while taking a look at issue
ASTERISK-13124, although I don't think this is the underlying cause
of the issue.


........
r165143 | mmichelson | 2008-12-17 11:53:37 -0600 (Wed, 17 Dec 2008) | 3 lines

And actually assign the function to a pointer...


........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=165146

By: Mark Michelson (mmichelson) 2008-12-17 12:01:51.000-0600

I've done a bit of looking in the code at the part around the "Houston we have a problem" message, but I don't think I've actually found what would be causing a discrepancy between realtime and static voicemail configuration yet.

I'll keep looking and let you know if I see anything.

By: Mark Michelson (mmichelson) 2008-12-17 12:04:50.000-0600

I've been thinking about what information you could provide that would be helpful, and one thing that may be helpful would be to set the core debug level up to at least 3 and upload a full console log from both successful and unsuccessful operations. There may be some problem happening earlier that may point to the underlying problem.

By: George Qualley IV (qualleyiv) 2008-12-17 12:05:43.000-0600

Alright, I probably won't be able to do that until this evening, but I will do that ASAP.

By: Tilghman Lesher (tilghman) 2009-01-16 14:32:59.000-0600

qualleyiv:  have you been able to gather the requested information yet?

By: George Qualley IV (qualleyiv) 2009-01-18 22:04:28.000-0600

I'm sorry, I haven't and it's likely that I won't. I was actually having quite a few problems with 1.6 on my G4 XServe so I picked up a cheap Dell server and moved Asterisk to that box running on Debian. I know I kind of jumped ship, but I am working in a live environment. I can stand a few hiccups, but it got to the point where I just couldn't spend any more time diagnosing...

Hopefully someone else can verify this issue.

By: Leif Madsen (lmadsen) 2009-01-28 14:50:50.000-0600

Closing this issue as suspended as the reporter is no longer able to provide the information. If anyone else is able to provide it, then please request to have this issue re-opened by a bug marshal. You can find one in #asterisk-bugs on the IRC network irc.freenode.net.