login | register
Sat 04 of Jul, 2009 [08:47 UTC]

voip-info.org

History

Asterisk Voicemail IMAP storage

Created by: slimey,Last modification on Wed 19 of Nov, 2008 [18:10 UTC] by adblock
ver: Asterisk 1.4, SVN trunk and 1.4.0 (official release)

Warning: There is currently a locking issue with voicemail-imap which can crash your asterisk!

See Bug 1
and Bug 2

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

; Syntax:
; <mailbox #> => <password>,<full name>,<email address>,<pager email address>,imapuser=<IMAP username>|imappassword=<IMAP password>
;
; For example:
[default]
4200 => 9855,Mark Spencer,myemail@digium.com,mypager@digium.com,imapuser=markster|imappassword=m@rk$ter
4201 => 7070,Johnny Smith,jsemail@digium.com,jspager@digium.com,imapuser=jsmith|imappassword=password1

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
  • As of 1.6.0.1, there is a bug in the code that handles the MWI on the phones. Asterisk checks the IMAP folder for messages, but only matches the mailbox and not the context, so if you have the same mailbox name in different contexts sending their messages to the same imap folder, both phones MWI will activate if a message is left in either mailbox. Here is a patch: http://pastebin.com/f721505c5

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.