Hello list members,

We're trying to get MWI notifications on our ATA device and we set it to 
send SUBSCRIBE messages to Asterisk, but it gets UNAUTHORIZED messages, 
despite the fact that we set the following lines in its settings in 
sip.conf:

subscribemwi=yes
mailbox...@from-extensions


We need help in understanding how this works and what we are doing wrong.


This is the SIP debug we get:


<--- SIP read from UDP:10.0.0.4:5090 --->
SUBSCRIBE sip:2...@10.0.0.10 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.4:5090;rport;branch=z9hG4bK3663664e35
From: <sip:2...@10.0.0.10>;tag=6d8c6ac6
To: <sip:2...@10.0.0.10>
Call-ID: 055f7edd4081e1ec0f176e0a4b395...@10.0.0.4
Contact: <sip:2...@10.0.0.4:5090>
CSeq: 1 SUBSCRIBE
Max-Forwards: 70
Expires: 60
Accept: application/simple-message-summary
Event: message-summary
User-Agent: CM5K-TA2S  (810170)
Content-Length: 0


<------------->
--- (13 headers 0 lines) ---
Creating new subscription
Sending to 10.0.0.4 : 5090 (no NAT)
list_route: hop: <sip:2...@10.0.0.4:5090>
Found peer '21' for '21' from 10.0.0.4:5090

<--- Transmitting (no NAT) to 10.0.0.4:5090 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 
10.0.0.4:5090;branch=z9hG4bK3663664e35;received=10.0.0.4;rport=5090
From: <sip:2...@10.0.0.10>;tag=6d8c6ac6
To: <sip:2...@10.0.0.10>;tag=as25bc6135
Call-ID: 055f7edd4081e1ec0f176e0a4b395...@10.0.0.4
CSeq: 1 SUBSCRIBE
Server: S-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="ePBX", nonce="26c43866"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 
'055f7edd4081e1ec0f176e0a4b395...@10.0.0.4' in 6400 ms (Method: SUBSCRIBE)

<--- SIP read from UDP:10.0.0.4:5090 --->
SUBSCRIBE sip:2...@10.0.0.10 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.4:5090;rport;branch=z9hG4bK3663664e35
From: <sip:2...@10.0.0.10>;tag=6d8c6ac6
To: <sip:2...@10.0.0.10>
Call-ID: 055f7edd4081e1ec0f176e0a4b395...@10.0.0.4
Contact: <sip:2...@10.0.0.4:5090>
CSeq: 1 SUBSCRIBE
Max-Forwards: 70
Expires: 60
Accept: application/simple-message-summary
Event: message-summary
User-Agent: CM5K-TA2S  (810170)
Content-Length: 0


<------------->
--- (13 headers 0 lines) ---
Ignoring this SUBSCRIBE request
Found peer '21' for '21' from 10.0.0.4:5090

<--- Transmitting (no NAT) to 10.0.0.4:5090 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 
10.0.0.4:5090;branch=z9hG4bK3663664e35;received=10.0.0.4;rport=5090
From: <sip:2...@10.0.0.10>;tag=6d8c6ac6
To: <sip:2...@10.0.0.10>;tag=as25bc6135
Call-ID: 055f7edd4081e1ec0f176e0a4b395...@10.0.0.4
CSeq: 1 SUBSCRIBE
Server: S-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="ePBX", nonce="26c43866"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 
'055f7edd4081e1ec0f176e0a4b395...@10.0.0.4' in 6400 ms (Method: SUBSCRIBE)

<--- SIP read from UDP:10.0.0.4:5090 --->
SUBSCRIBE sip:2...@10.0.0.10 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.4:5090;rport;branch=z9hG4bK3663664e35
From: <sip:2...@10.0.0.10>;tag=6d8c6ac6
To: <sip:2...@10.0.0.10>
Call-ID: 055f7edd4081e1ec0f176e0a4b395...@10.0.0.4
Contact: <sip:2...@10.0.0.4:5090>
CSeq: 1 SUBSCRIBE
Max-Forwards: 70
Expires: 60
Accept: application/simple-message-summary
Event: message-summary
User-Agent: CM5K-TA2S  (810170)
Content-Length: 0


<------------->
--- (13 headers 0 lines) ---
Ignoring this SUBSCRIBE request
Found peer '21' for '21' from 10.0.0.4:5090

<--- Transmitting (no NAT) to 10.0.0.4:5090 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 
10.0.0.4:5090;branch=z9hG4bK3663664e35;received=10.0.0.4;rport=5090
From: <sip:2...@10.0.0.10>;tag=6d8c6ac6
To: <sip:2...@10.0.0.10>;tag=as25bc6135
Call-ID: 055f7edd4081e1ec0f176e0a4b395...@10.0.0.4
CSeq: 1 SUBSCRIBE
Server: S-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="ePBX", nonce="26c43866"
Content-Length: 0


<--- SIP read from UDP:10.0.0.4:5090 --->
SUBSCRIBE sip:2...@10.0.0.10 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.4:5090;rport;branch=z9hG4bK3663664e35
From: <sip:2...@10.0.0.10>;tag=6d8c6ac6
To: <sip:2...@10.0.0.10>
Call-ID: 055f7edd4081e1ec0f176e0a4b395...@10.0.0.4
Contact: <sip:2...@10.0.0.4:5090>
CSeq: 1 SUBSCRIBE
Max-Forwards: 70
Expires: 60
Accept: application/simple-message-summary
Event: message-summary
User-Agent: CM5K-TA2S  (810170)
Content-Length: 0


<------------->
--- (13 headers 0 lines) ---
Ignoring this SUBSCRIBE request
Found peer '21' for '21' from 10.0.0.4:5090

<--- Transmitting (no NAT) to 10.0.0.4:5090 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 
10.0.0.4:5090;branch=z9hG4bK3663664e35;received=10.0.0.4;rport=5090
From: <sip:2...@10.0.0.10>;tag=6d8c6ac6
To: <sip:2...@10.0.0.10>;tag=as25bc6135
Call-ID: 055f7edd4081e1ec0f176e0a4b395...@10.0.0.4
CSeq: 1 SUBSCRIBE
Server: S-PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="ePBX", nonce="26c43866"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 
'055f7edd4081e1ec0f176e0a4b395...@10.0.0.4' in 6400 ms (Method: SUBSCRIBE)


Thanks,


Michael


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to