asterisk and MWI

Posted on 2010-11-29
Last Modified: 2012-05-10
HI All,

We are running a digium aa50 with grandstream gxp 2020.

I am unable to work out how to get the MWI light showing when we have new messages on the system.

We have enabled "Subscribe for MWI" and disabled "subscribe for registration event" and "Publish for presence".

Any help would be appreciated.
Question by:Cheryl Lander
  • 2
  • 2
LVL 19

Expert Comment

ID: 34268564
Asterisk doesn't usually require explicit MWI subscription, so it may be better to disable "Subscribe for MWI". It should automatically get told about messages provided Asterisk knows which voicemail box is associated with each phone. You can check that using the CLI command:
  sip show peer <extn_number>

In the list of data that is displayed, look for the field "Mailbox". It should contain the voicemail box number.

The Grandstream field "Voicemail User ID" is misleading - it is not the voicemail box number, but is the number the phone calls to access messages (well, that is true on the GXP2000 anyway).

Check my article for more details:

Author Comment

by:Cheryl Lander
ID: 34279567
Ive turned off mwi subscription and rebooted the phone.

ive then gone into cli and got the following results.

Also the Voicemail User ID is of the number to access messages.

So in this case.

User # = 6001.
Number to access messages = 6050

* Name       : 6001

  Secret       : 

  MD5Secret    : 

  Context      : DLPN_DialPlan1

  Subscr.Cont. : 

  Language     : 

  AMA flags    : Unknown

  Transfer mode: open

  CallingPres  : Presentation Allowed, Not Screened

  Callgroup    : 

  Pickupgroup  : 

  Mailbox      : 6001

  VM Extension : 6050

  LastMsgsSent : 1/5

  Call limit   : 100

  Dynamic      : Yes

  Callerid     : "Joe Bloggs" <6001>

  MaxCallBR    : 384 kbps

  Expire       : 3385

  Insecure     : no

  Nat          : RFC3581

  ACL          : No

  T38 pt UDPTL : No

  CanReinvite  : No

  PromiscRedir : No

  User=Phone   : No

  Video Support: No

  Trust RPID   : No

  Send RPID    : No

  Subscriptions: No

  Overlap dial : Yes

  DTMFmode     : rfc2833

  LastMsg      : 0

  ToHost       : 

  Addr->IP     : Port 5060

  Defaddr->IP  : Port 5060

  Def. Username: 6001

  SIP Options  : (none)

  Codecs       : 0x180e (gsm|ulaw|alaw|g726|g722)

  Codec Order  : (alaw:20,ulaw:20,gsm:20,g726:20,g722:0)

  Auto-Framing:  No 

  Status       : Unmonitored

  Useragent    : Grandstream GXP2020

  Reg. Contact : sip:6001@;transport=udp

Open in new window

LVL 19

Accepted Solution

feptias earned 500 total points
ID: 34280900
Everything looks correct. If someone leaves a message in voicemail box 6001, you should definitely see an indication on the phone. ...but you're saying that you don't. That is very odd. Can you capture the SIP packets and post them here please as follows:
1. Clear all messages from box 6001
2. At the CLI, type "sip set debug peer 6001"
3. Leave a message in box 6001
4. Save the CLI output to a file and post here as an attachment.

I use Putty to reach the CLI in Asterisk. It has the ability to buffer hundreds of lines of output and other options to allow capture to file of a large stream of output as descibed above. There are other ways of capturing the SIP. For example, by adding verbose to the options for the log file in /etc/asterisk/logger.conf, then do logger reload, then run the test above. That will write the SIP to the /var/log/asterisk/messages file.

By the way, have you checked for updates to the firmware on the phone? I am very surprised this is not just working.

Author Closing Comment

by:Cheryl Lander
ID: 34298573
No Good.

Will call it day.

Too much time spent on this phone ;-)


Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hey there Heard about jingle, the add on for XMPP that enables point to point audio between two XMPP clients. No server config necessary. Actually quite a cool feature. However, how good is it if you can not use those voice capabilities to do a P…
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now