[asterisk-gui] Can IMAP Voicemail be configured with asterisk-gui ?
Noah Miller
noahisaacmiller at gmail.com
Mon Nov 30 09:27:38 CST 2009
Hi -
> 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.
Officially, no the GUI cannot directly do IMAP voicemail. You have to:
1) manually put the IMAP server settings in voicemail.conf (which it
looks like you've done)
2) for each user, go into the Advanced Settings (which is basically
just editing the users.conf file directly), and add
"imapuser=<imapusername>". Adding the users directly to
voicemail.conf will not work, they have to be added to users.conf
If you're interested, I added the second capability to the GUI on an
asterisk box that I administer. It's an older version of the GUI, but
it would be easy adapt this hack to the latest version. I can supply
you with my code, if you like. For the first step, if you really want
this in the GUI, I don't think it would be too difficult to add this
as a tab to the options screen.
A related question to anybody in the know - is it possible to tell via
the AMI if a system is using IMAP (or ODBC) voicemail?
- Noah
> 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
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-gui mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-gui
>
More information about the asterisk-gui
mailing list