login | register
Thu 28 of Aug, 2008 [09:41 UTC]

voip-info.org

Discuss [3] History

Asterisk Voicemail IMAP storage

Created by: slimey,Last modification on Sat 27 of Oct, 2007 [06:23 UTC] by ajc

Asterisk Voicemail IMAP Storage

ver: Asterisk 1.4, SVN trunk and 1.4.0 (official release)

Configuration in voicemail.conf


[general]
(...)
imapserver=hostname of IMAP server

;Here you may specify an alternate folder for voicemail.
;Needs to be created manually on server
imapfolder=Voicemail

in the Voicemail specification

[context]
mailboxno => PIN, user, email,, |imapuser=imap_user|imappasswd=imap_password

Requirements

Depends on c-client, and optionally SSL

Howto

Note: The master user feature is available since dovecot 1.0-b4, Ubuntu 6.06 LTS (dapper) comes with 1.0-b3 and is therefore not usable out of the box, 6.10 (edgy) and the upcoming feisty come with 1.0-rc2 or later and work as described.
Note: The master user feature is available since Citadel 7.22 and can be easily configured using a web-based interface.


Notes

  • 1.4-beta3 IMAP storage does not work with c-client version imap-2006c1 (it's missing an inclusion of linkages.c, at least)
  • SVN trunk (revision 48010) has a bug which stops IMAP user/pass login working (may only affect PLAIN authentication) - see bugtracker 8240
  • With a workaround for bug 8420, I've got asterisk SVN trunk talking IMAP to dovecot, and it seems to work fine. For it to work sanely, you need to configure a master password file in dovecot.conf so you can login to IMAP with one generic account, and post messages to all users' inboxes


Comments

Comments Filter
222

333Hangup problem

by skug67, Wednesday 05 of March, 2008 [20:24:24 UTC]
I've got voicemail heading nicely into the IMAP store on a Debian (lenny = testing) install. The read/deleted flags are keeping nicely in sync between the Asterisk mailbox and the INBOX folder of the IMAP server. But there's one big problem. When Asterisk is done recording the voicemail it won't hangup the line. I've tested this by changing absolutely nothing except (a) which app_voicemail modules is disabled in modules.conf and (b) the voicemail.conf settings that are particular to the IMAP inbox. Regular app_voicemail -> hangs up fine; app_voicemail_imap -> line doesn't get hungup, so that (at least with a PSTN line via my WCTDM) incoming calls just get a busy signal until I restart asterisk.

Thoughts??????????
222

333More information?

by kodak, Thursday 17 of January, 2008 [02:31:59 UTC]
Is there any more information available on this anywhere? I can't get * to acknowledge an IMAP server at all, and the only documentation I can find is a sparse readme.
222

333Not working strait way with 1.4.0

by neutrino38, Thursday 11 of January, 2007 [00:22:15 UTC]
Got this message:

[Jan 11 00:46:56] ERROR[21010]: app_voicemail.c:8337 mm_log: IMAP Error: Can't open mailbox {imap.free.fr:143/imap//user=xxxxxx}INBOX: invalid remote specification

I believe this is because of the // in the mailbox specification. In between the two / there should be imapflags but as none were specified. I'll try a fix.