IMAP Errors

Brilliant. It finally works with Dovecot virtual users in mbox format.

Bugs!:

Asterisk 1.4.4:
Messages can’t be played from the phone unless they’re saved as gsm format. wav, wav49 do not get played, the piece of code in app_voicemail.c that makes a gsm file from wav or wav49 always creates a 0 sized file in /var/spool/asterisk/voicemail/VoiceMailBoxes/Extension/tmp/ which, quite logically cannot be played.

Asterisk 1.4.4:
Logging in as a master user is broken unless worked around in the conf file. (Basic knowledge of IMAP/pine/mtest/UWimap/cclient seems like a natural prerequisite before writing Imap storage code, but I guess somewhere along the line it got dropped.)

Asterisk 1.4.4:
Asterisk segfaults if you record a greeting from advanced options in the voicemail. “Hi you’ve reached xmarksthespot, I’m presently on the phone…”

On the good side of things I only get one message (not two duplicate messages) because I don’t have a MTA installed on the machine.

Good luck to all of those who want to configure a machine with this, you’re in for ONE HELL OF A RIDE (through hell).

Sounds like we are at the same place, except I did not try the GSM file storage work-around yet. I did verify from the developers that IMAP storage IS BROKEN in this current release and should be fixed shortly. I think I will watch the trunk carefully and start the process again when the new code is available. I knew I was not crazy and it had worked fine before in a beta release using an existing IMAP server on my network. One good thing, I now have a great Dovecot setup just ready to talk to the IMAP client when it can!

Well once you figure out what’s wrong with the master user and the gsm file format, it’s no longer all that badly broken is it? :smiley:

Not that I wouldn’t have enjoyed doing something else with all this time (plus sticking to cyrus instead of dovecot, bleh)

I’ve filed a bug report for the segfault thing: BugID 9735

If they’re aware already it’ll just get closed and I’ll get karmaed–.

But I figure better safe than sorry and MAKE SURE they know.

We don’t want to end up with this bug in 1.4.5 now do we: “Oh noes, it’s still b0rked!”

Hey dude, posted a patch that repairs the authuser thing for master users for trunk.

Can you try it out? It’s at bugid 9740

Just realized it breaks the file hierarchy, I’ll try to do a proper patch now.

And I’ll build one for 1.4.4 soon.

It would help if you could confirm the issues I posted at 9735 and 9740 by a note, adds credibility to the bug reports.

Looks like you have been busy and a lot of good has come out of it. I get no crashes, just one remaining problrm. When I try to retrieve messages from the phone, I get:
[Jun 7 14:58:49] ERROR[6059]: app_voicemail.c:9049 mm_log: IMAP Error: Mailbox doesn’t exist: {192.168.1.178:143/imap/authuser=asterisk/novalidate-cert/user=mike}Voicemail

No attempt to hit the IMAP server. Login is sucessful otherwise.
It does not matter if I use a master user or include the password in the user field. I can leave messages and they correctly show up in the imap mailbox. Maybe I have botched a config, but I cannot find it. Any ideas?

I was getting the IMAP error of

(Note the authuser and user are ficticious. )

Anyway modified the code in function open_mailbox in app_voicemail.c to:

	/* Check Quota (here for now to test) */
	mail_parameters(NULL, SET_QUOTA, (void *) mm_parsequota);
	imap_mailbox_name(dbox, vms, box, 1);
#if 0	
	imap_mailbox_name(dbox, vms, box, 1);
	imap_getquotaroot(vms->mailstream, dbox);
#else	
	imap_getquotaroot(vms->mailstream, mbox(box < 2 ? 0 : box));
#endif

And the tcp stream is as follows:

I modified the code to remove the fully qualified IMAP mailbox name.

The error disappeared :open_mouth:, whether I’m getting my root quotas is another matter.

Obviously this was an initial test to just get rid of the error from the IMAP server seems to return some form of quotas.