System information

We’ve removed the email address from the third field because we’re not going to use
sendmail to email us voicemails anymore: they are just going to be stored on the email
server directly now. We’ve configured the mailbox to connect with the IMAP username
of leif@shifteight.org (because we’ve enabled Google Apps for the domain that hosts
our email) and are connecting using the IMAP password secret.
After configuring Asterisk, we need to reload the app_voicemail.so module. If you en-
able console debugging, you should see output similar to the following upon connec-
tion to the voicemail server:
*CLI> core set debug 10
*CLI> module reload app_voicemail.so
DEBUG[3293]: app_voicemail.c:2734 mm_log: IMAP Info: Trying IP address [74.125.53.109]
DEBUG[3293]: app_voicemail.c:2734 mm_log: IMAP Info: Gimap ready for requests
from 99.228.XXX.XXX 13if2973206wfc.0
DEBUG[3293]: app_voicemail.c:2757 mm_login: Entering callback mm_login
DEBUG[3293]: app_voicemail.c:2650 mm_exists: Entering EXISTS callback for message 7
DEBUG[3293]: app_voicemail.c:3074 set_update: User leif@shifteight.org mailbox set for
update.
DEBUG[3293]: app_voicemail.c:2510 init_mailstream: Before mail_open, server:
{imap.gmail.com:993/imap/ssl/user=leif@shifteight.org}INBOX, box:0
DEBUG[3293]: app_voicemail.c:2734 mm_log: IMAP Info: Reusing connection to
gmail-imap.l.google.com/user="leif@shifteight.org"
If you get any ERRORs, check your configuration and verify that the IMAP library is
compiled with SSL support. Once app_voicemail.so is connected, try leaving yourself
a voicemail; then check your voicemail via the Gmail web interface and verify that your
message is stored correctly. You should also have an MWI light on your device if it
supports it, and if you’ve configured mailbox=100@shifteight for the device in
sip.conf. If you load the voicemail message envelope and mark it as read, the MWI light
should turn off within 30 seconds (or whatever value you set pollfreq to in voice-
mail.conf).
Using XMPP (Jabber) with Asterisk
The eXtensible Messaging and Presence Protocol (XMPP) (formerly called Jabber) is
used for instant messaging and communicating presence information across networks
in near-realtime. Within Asterisk, it is also used for call setup (signaling). There are
various cool things we can do with XMPP integration once it’s enabled, such as getting
a message whenever someone calls us. We can even send messages back to Asterisk,
redirecting our calls to voicemail or some other location. Additionally, with
chan_gtalk, we can accept and place calls over the Google Voice network or accept calls
from Google Talk users via the web client.
418 | Chapter 18:External Services