[asterisk-dev] Remote MWI notification issue

Mark Michelson mmichelson at digium.com
Fri May 11 07:49:56 CDT 2012

On 05/10/2012 09:40 PM, Josh Patten wrote:
> I recently posted on the Asterisk support forum about an issue I was 
> experiencing with Asterisk MWI:
> http://forums.asterisk.org/viewtopic.php?f=1&t=82685 
> <http://forums.asterisk.org/viewtopic.php?f=1&t=82685>
> And was directed to join the mailing list for help with assistance 
> resolving this issue.
> I am unable to subscribe to external MWI. If possible, please review 
> the forum post and information contained therein and point out my 
> errors. If you need more info don't hesitate to ask.
> Thank you.
> -- 
> Josh Patten
The one thing that makes this a bit hard to diagnose is that you don't 
say here or in your forum post what version of Asterisk you are using.

The problem appears to be that Asterisk doesn't even attempt to send 
authentication when the server challenges the SUBSCRIBE. I took a quick 
look at the 1.4 SVN tip and the 1.8 SVN tip. In 1.8, Asterisk should be 
sending authentication in response to 401 responses to SUBSCRIBEs. In 
1.4, it should not be. So if you're using 1.8, I'd say you've found a 
bug that needs fixing, so you should open an issue on the bug tracker. 
If you're using a version prior to 1.8 (i.e. an unsupported version), 
then you'll need to modify the code yourself in order to do what you 
want. If you search chan_sip.c for "do_proxy_auth" it should be clear 
how to do what you need.

I'm not 100% sure about this, but I think Asterisk still does not 
support receiving unsolicited MWI NOTIFYs at this point, so you'll still 
see the 481 problem if you attempt to use Asterisk 1.8.


More information about the asterisk-dev mailing list