I have been trying to set up sollicitated MWI (unsollicitated works fine) on my newly upgraded Asterisk 18.8.0 box.
My understanding is that you just need to put the mailbox into the mailboxes= field of the aor. And then the endpoint that is linked to the aor (I have a one-to-one relationship for my testing to keep things simple) can then subscribe to mailbox@context
So I have an aor with mailboxes=706@4165551234 . I definitely have a 1706@4165551234 voicemailbox, as shown by running “voicemail show users for test” in Asterisk.
When I turn on the logger, I get subscription communication, but they are always rejected with 404 not found or 401 not authorized
I don’t know what my next steps are
Or is there anything else to turn on that I am not aware of?
Here is a logger snippet with some things like IPs scrambled.
[2021-11-15 19:52:14] VERBOSE[6336] res_pjsip_logger.c: <— Received SIP request (562 bytes) from UDP:24.35.34.56:26205 —>
SUBSCRIBE sip:706@4165551234 SIP/2.0
Via: SIP/2.0/UDP 10.0.8.109;branch=z9hG4bKefeb3e82BAE279C2
From: “PJSIP test” sip:test@server.domain.com;tag=17D798C5-664F257C
To: sip:706@4165551234
CSeq: 1 SUBSCRIBE
Call-ID: 31d992e1d5c55944ce3bc8dc073a7c70
Contact: sip:test@10.0.8.109
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,INFO,MESSAGE,SUBSCRIBE,NOTIFY,PRACK,UPDATE,REFER
Event: message-summary
User-Agent: PolycomVVX-VVX_450-UA/6.4.1.2280
Accept-Language: en
Accept: application/simple-message-summary
Max-Forwards: 70
Expires: 60
Content-Length: 0
[2021-11-15 19:52:14] VERBOSE[7157] res_pjsip_logger.c: <— Transmitting SIP response (497 bytes) to UDP:24.35.34.56:26205 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.8.109;rport=26205;received=24.35.34.56;branch=z9hG4bKefeb3e82BAE279C2
Call-ID: 31d992e1d5c55944ce3bc8dc073a7c70
From: “PJSIP test” sip:test@server.domain.com;tag=17D798C5-664F257C
To: sip:706@4165551234;tag=z9hG4bKefeb3e82BAE279C2
CSeq: 1 SUBSCRIBE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1637023934/9ae102640995711d71eeede3d853095b”,opaque=“7b9555e3757a1002”,algorithm=md5,qop=“auth”
Server: mYPBX
Content-Length: 0
[2021-11-15 19:52:14] VERBOSE[6336] res_pjsip_logger.c: <— Received SIP request (834 bytes) from UDP:24.35.34.56:26205 —>
SUBSCRIBE sip:706@4165551234 SIP/2.0
Via: SIP/2.0/UDP 10.0.8.109;branch=z9hG4bKba77d7a2DAE02CA2
From: “PJSIP test” sip:test@server.domain.com;tag=17D798C5-664F257C
To: sip:706@4165551234
CSeq: 2 SUBSCRIBE
Call-ID: 31d992e1d5c55944ce3bc8dc073a7c70
Contact: sip:test@10.0.8.109
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,INFO,MESSAGE,SUBSCRIBE,NOTIFY,PRACK,UPDATE,REFER
Event: message-summary
User-Agent: PolycomVVX-VVX_450-UA/6.4.1.2280
Accept-Language: en
Accept: application/simple-message-summary
Authorization: Digest username=“test”, realm=“asterisk”, nonce=“1637023934/9ae102640995711d71eeede3d853095b”, qop=auth, cnonce=“lT5NGzWEW80IUFS”, nc=00000001, opaque=“7b9555e3757a1002”, uri=“sip:706@4165551234”, response=“b363f135a690880eb3be94a044502a48”, algorithm=MD5
Max-Forwards: 70
Expires: 60
Content-Length: 0
[2021-11-15 19:52:14] VERBOSE[18258] res_pjsip_logger.c: <— Transmitting SIP response (348 bytes) to UDP:24.35.34.56:26205 —>
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 10.0.8.109;rport=26205;received=24.35.34.56;branch=z9hG4bKba77d7a2DAE02CA2
Call-ID: 31d992e1d5c55944ce3bc8dc073a7c70
From: “PJSIP test” sip:test@server.domain.com;tag=17D798C5-664F257C
To: sip:706@4165551234;tag=z9hG4bKba77d7a2DAE02CA2
CSeq: 2 SUBSCRIBE
Server: mYPBX
Content-Length: 0