[asterisk-users] Google Apps IMAP

Marc Smith marc.smith at mcc.edu
Mon Jul 14 14:46:00 CDT 2008


On Wed, Jun 25, 2008 at 6:11 PM, Gavin Henry <gavin.henry at gmail.com> wrote:
> Google Apps version might.
>

Just an update... I can leave a voicemail message for a user and it
shows up in GMail (web interface), but I can't retrieve the message by
calling the voicemail app in Asterisk. Asterisk reports 0 messages,
yet it shows up and I can listen to the .wav file through a web
browser.

I tested my setup with a dovecot IMAP server and it works prefectly
with that, so must be something with Google IMAP implementation. I'll
experiement more. I've turned up debugging and there doesn't appear to
be any "bad" messages:

[Jul 14 14:28:30] DEBUG[8827] config.c: Parsing /etc/asterisk/voicemail.conf
[Jul 14 14:28:30] DEBUG[8827] app_voicemail.c: VM Review Option
disabled globally
[Jul 14 14:28:30] DEBUG[8827] app_voicemail.c: VM Temperary Greeting
Reminder Option disabled globally
[Jul 14 14:28:30] DEBUG[8827] app_voicemail.c: VM Operator break
disabled globally
[Jul 14 14:28:30] DEBUG[8827] app_voicemail.c: VM CID Info before msg
disabled globally
[Jul 14 14:28:30] DEBUG[8827] app_voicemail.c: Send Voicemail msg
disabled globally
[Jul 14 14:28:30] DEBUG[8827] app_voicemail.c: ENVELOPE before msg
enabled globally
[Jul 14 14:28:30] DEBUG[8827] app_voicemail.c: Duration info before
msg enabled globally
[Jul 14 14:28:30] DEBUG[8827] app_voicemail.c: We are not going to
skip to the next msg after save/delete
[Jul 14 14:28:41] DEBUG[8840] app_voicemail.c: Before ast_answer
[Jul 14 14:28:41] DEBUG[8840] res_config_mysql.c: MySQL RealTime:
Retrieve SQL: SELECT * FROM voicemail WHERE mailbox = '20001' AND
context
 = 'default'
[Jul 14 14:28:41] DEBUG[8840] app_voicemail.c: Before find user for
mailbox 20001
[Jul 14 14:28:41] DEBUG[8840] res_config_mysql.c: MySQL RealTime:
Retrieve SQL: SELECT * FROM voicemail WHERE mailbox = '20001' AND
context
 = 'default'
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: Mailbox is set to 20001
[Jul 14 14:28:41] DEBUG[8837] res_config_mysql.c: MySQL RealTime:
Retrieve SQL: SELECT * FROM voicemail WHERE mailbox = '20001' AND
context
 = 'default'
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c:
marc.smith at amail.mcc.edu not found in vmstates
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: Mailbox set to 20001
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: 20001 not found in vmstates
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c:
marc.smith at amail.mcc.edu not found in vmstates
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: Mailbox set to 20001
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: 20001 not found in vmstates
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: Adding new vmstate for
marc.smith at amail.mcc.edu
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: Copied
marc.smith at amail.mcc.edu to marc.smith at amail.mcc.edu
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: Inserting vm_state for
user:marc.smith at amail.mcc.edu, mailbox 20001
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: vm_state user
is:marc.smith at amail.mcc.edu
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: mailstream not set.
[Jul 14 14:28:41] DEBUG[8837] app_voicemail.c: IMAP Info: Trying IP
address [66.249.83.111]
[Jul 14 14:28:42] DEBUG[8837] app_voicemail.c: IMAP Info: Gimap ready
for requests from 192.153.163.45 h9if5585773wxd.0
[Jul 14 14:28:42] DEBUG[8837] app_voicemail.c: Entering callback mm_login
[Jul 14 14:28:42] DEBUG[8837] res_config_mysql.c: MySQL RealTime:
Retrieve SQL: SELECT * FROM voicemail WHERE imapuser =
'marc.smith at amail.
mcc.edu'
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Entering EXISTS
callback for message 2397
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: User
marc.smith at amail.mcc.edu mailbox set for update.
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: IMAP Info: [UNSEEN 2]
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}Bacula
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}INBOX
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}[Gmail]
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: no select
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}[Gmail]/All Mail
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}[Gmail]/Drafts
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}[Gmail]/Sent Mail
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}[Gmail]/Spam
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}[Gmail]/Starred
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}[Gmail]/Trash
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}asterisk-biz
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}asterisk-bsd
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Delimiter set to / and
mailbox {imap.gmail.com}asterisk-users
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Before mail_open,
server: {imap.gmail.com:993/imap/ssl/user=marc.smith at amail.mcc.edu}INBOX,
box:0
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: IMAP Info: Reusing
connection to gmail-imap.l.google.com/user="marc.smith at amail.mcc.edu"
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Entering EXISTS
callback for message 2397
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: User
marc.smith at amail.mcc.edu mailbox set for update.
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: IMAP Info: [UNSEEN 2]
[Jul 14 14:28:43] DEBUG[8837] res_config_mysql.c: MySQL RealTime:
Retrieve SQL: SELECT * FROM voicemail WHERE mailbox = '20001' AND
context
 = 'default'
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c:
marc.smith at amail.mcc.edu not found in vmstates
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Mailbox set to 20001
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c:  comparing mailbox
20001 (i=1) to vmstate mailbox 20001 (i=0)
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: 20001 not found in vmstates
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: vm_state user
is:marc.smith at amail.mcc.edu
[Jul 14 14:28:43] DEBUG[8837] app_voicemail.c: Before mail_open,
server: {imap.gmail.com:993/imap/ssl/user=marc.smith at amail.mcc.edu}INBOX,
box:1

"UNSEEN 2" -- So, it sees I have 2 unread messages.

I'm starting to doubt if GMail/Asterisk-IMAP integration is going to
be right for our institution, even if I get this working correctly,
there is still the problem of how to turn on IMAP access for all GApps
accounts and make it stay on. I don't believe the GApps API supports
changing user's options that way.


--Marc


> 2008/6/25 Marc Smith <marc.smith at mcc.edu>:
>> Hi,
>>
>> Anyone using Asterisk IMAP voicemail storage with Google Apps / GMail
>> IMAP? If so, does their IMAP implementation support any kind of
>> "master user" (Dovecot) abililty? Good? Bad?
>>
>> --Marc
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>> Register Now: http://www.astricon.net
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
>
> --
> http://www.suretecsystems.com/services/openldap/
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
> !DSPAM:1,4862c35665662617731437!
>
>
>



More information about the asterisk-users mailing list