[asterisk-gui] Can IMAP Voicemail be configured with asterisk-gui ?

LCA lca765 at yahoo.com
Thu Nov 26 23:43:44 CST 2009


I'm trying to configure a new asterisk server to replace my old asterisk 1.2 server but have run into some trouble with the IMAP voicemail setup.

The setup is:
Centos 5.4, Asterisk 1.6.2 tarball, dahdi, libpri, and imap-2007e
Asterisk compiled with IMAP
Asterisk-gui installed
4 port Digium FXS card
Teliax for IAX trunk

Using the gui, I've set up:
a trunk for Teliax
Extensions 8001, 8002, 8003, 8004 for the FXS card
some incoming and outgoing call rules.

I can call between extensions, call out the trunk, and receive calls from the outside world.  The problems start when I try to enable voicemail.

8003 and 8004 need voicemail, 8001 and 8002 don't.

voicemail.conf
[general]
imapserver=mail.domain.org
imapport=143
expungeonhangup=yes
;imapfolder=Voicemail
imapflags=notls
pollmailboxes = yes
pollfreq = 30
imapgreetings = no
;greetingsfolder=INBOX
imapparentfolder=INBOX

[default]
8003 => 0195,John Doe,johndoe at domain.org,,imapuser=username+domain.org|imappassword=secret
8004 => 0195,Jane Doe,janedoe at domain.org,,imapuser=username+domain.org|imappassword=secret

I get these errors:
app_voicemail.c:1788 messagecount: Couldn't find mailbox 8001 in context default
app_voicemail.c:1788 messagecount: Couldn't find mailbox 8002 in context default

and since "Enable voicemail for this user" is NOT checked in the user extension screen for any of the analog phones, ${RINGTIME} is null so Dial is executed with no timeout and thus no rollover to voicemail :(

Dial("DAHDI/3-1", "DAHDI/4") in new stack

If I set "Enable voicemail for this user" for 8003 and 8004 then ${RINGTIME} gets set properly but I get these errors:

 app_voicemail.c:9755 find_or_create: Ignoring duplicated mailbox 8003 in context default
app_voicemail.c:9755 find_or_create: Ignoring duplicated mailbox 8004 in context default
app_voicemail.c:1788 messagecount: Couldn't find mailbox 8001 in context default
app_voicemail.c:1788 messagecount: Couldn't find mailbox 8002 in context default
app_voicemail.c:1788 messagecount: Couldn't find mailbox 8003 in context default
app_voicemail.c:1788 messagecount: Couldn't find mailbox 8004 in context default

and when Dial reaches ${RINGTIME} stdexten tries to go to voicemail but fails like this:

-- Executing [s-NOANSWER at macro-stdexten:1] VoiceMail("DAHDI/3-1", "8004,u") in new stack
[Nov 27 00:30:14] WARNING[19297]: app_voicemail.c:5136 leave_voicemail: No entry in voicemail config file for '8004'
    -- Executing [s-NOANSWER at macro-stdexten:2] Goto("DAHDI/3-1", "default,s,1") in new stack
    -- Goto (default,s,1)


If I disable "Enable voicemail for this user" on 8003 and 8004 I can dial #8004 (direct to voicemail) and leave a voicemail as you would expect.  A few seconds later the MWI on 8004 lights up and an email arrives in my INBOX. Marking the email "read" disables the MWI.  So at least the connection to the IMAP server is working...

Any suggestions on how to fix this mess?  Does the Asterisk-gui just not know about IMAP voicemail.  I feel like I could make this all work if I got rid of the users.conf file and set up the FXS ports in zaptel(dahdi or where ever it lives now) but I wanted to give the gui a chance.

thanks
happy turkey day


      



More information about the asterisk-gui mailing list