<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">Hello list,<br>
<br>
this is the communication between an Aastra 5000 PBX and Asterisk,
where the Aastra makes a call to Asterisk. For some reason,
Asterisk responds with 401-Unauthorized and I don't know why.<br>
<br>
Calls go well with Panasonic PBX, Avaya PBX, Alcatel-Lucent PBX
but NOT with this Aastra.<br>
<br>
<br>
A1.A1.A1.A1 = IP-address Asterisk PBX<br>
AS.AS.AS.AS = IP-address Aastra PBX<br>
<br>
Aastra PBX makes a call to the number </font><font
face="Helvetica, Arial, sans-serif">3221112233...</font><br>
<font face="Helvetica, Arial, sans-serif"><br>
This is all the sip debug trace gathered with asterisk :<br>
<br>
<br>
<--- SIP read from UDP:AS.AS.AS.AS:61490 ---><br>
INVITE <a class="moz-txt-link-freetext" href="sip:3221112233@A1.A1.A1.A1:5060">sip:3221112233@A1.A1.A1.A1:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK15388160301891243008;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=310158BD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a><br>
Call-ID: 0201FFFFCEFEA742<br>
CSeq: 1 INVITE<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@AS.AS.AS.AS:61490"><sip:SIPPEERusername@AS.AS.AS.AS:61490></a><br>
Proxy-Authorization: Digest username="SIPPEERusername",
realm="domain.tld", nonce="67105ac4",
uri=<a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060">"sip:3221112233@A1.A1.A1.A1:5060"</a>, response="60be856773<br>
f86450fc9ddbaf7a568505", algorithm=MD5<br>
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, UPDATE<br>
Max-Forwards: 70<br>
Privacy: none<br>
P-Asserted-Identity: <a class="moz-txt-link-rfc2396E" href="sip:3224445566@sip.domain.tld"><sip:3224445566@sip.domain.tld></a><br>
User-Agent: A5000 R52-H2C0205<br>
P-Behind-Gsi: 192.168.6.1<br>
Content-Type: application/sdp<br>
Content-Length:195<br>
<br>
v=0<br>
o=- 0 0 IN IP4 sip.domain.tld<br>
s=-<br>
i=(o=IN IP4 10.1.2.35)<br>
c=IN IP4 AS.AS.AS.AS<br>
t=0 0<br>
m=audio 62654 RTP/AVP 8 0<br>
a=rtcp:65115<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=ptime:20<br>
<br>
<-------------><br>
<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] ---
(16 headers 11 lines) ---<br>
[Nov 18 15:14:35] VERBOSE[2255] netsock.c: [Nov 18 15:14:35] ==
Using SIP RTP TOS bits 184<br>
[Nov 18 15:14:35] VERBOSE[2255] netsock.c: [Nov 18 15:14:35] ==
Using SIP RTP CoS mark 5<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Sending to AS.AS.AS.AS : 61490 (no NAT)<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Using INVITE request as basis request - 0201FFFFCEFEA742<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Found peer 'SIPPEERusername' for 'SIPPEERusername' from
AS.AS.AS.AS:61490<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] <br>
<--- Reliably Transmitting (NAT) to AS.AS.AS.AS:61490 ---><br>
SIP/2.0 401 Unauthorized<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK15388160301891243008;received=AS.AS.AS.AS;rport=61490<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=310158BD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a>;tag=as68f71fe5<br>
Call-ID: 0201FFFFCEFEA742<br>
CSeq: 1 INVITE<br>
Server: Asterisk PBX 1.6.2.20<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
NOTIFY, INFO<br>
Supported: replaces, timer<br>
WWW-Authenticate: Digest algorithm=MD5, realm="domain.tld",
nonce="46ef24d9"<br>
Content-Length: 0<br>
<br>
<------------><br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Scheduling destruction of SIP dialog '0201FFFFCEFEA742' in 32000
ms (Method: INVITE)<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] <br>
<--- SIP read from UDP:AS.AS.AS.AS:61490 ---><br>
ACK <a class="moz-txt-link-freetext" href="sip:3221112233@A1.A1.A1.A1:5060">sip:3221112233@A1.A1.A1.A1:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK15388160301891243008;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=310158BD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a>;tag=as68f71fe5<br>
Call-ID: 0201FFFFCEFEA742<br>
CSeq: 1 ACK<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@AS.AS.AS.AS:61490"><sip:SIPPEERusername@AS.AS.AS.AS:61490></a><br>
Max-Forwards: 70<br>
User-Agent: A5000 R52-H2C0205<br>
P-Behind-Gsi: 192.168.6.1<br>
Content-Length: 0<br>
<br>
<br>
<-------------><br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] ---
(11 headers 0 lines) ---<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] <br>
<--- SIP read from UDP:AS.AS.AS.AS:61490 ---><br>
INVITE <a class="moz-txt-link-freetext" href="sip:3221112233@A1.A1.A1.A1:5060">sip:3221112233@A1.A1.A1.A1:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK6996345481960200906;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=33015DBD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a><br>
Call-ID: 0201FFFFCCFEA242<br>
CSeq: 1 INVITE<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@AS.AS.AS.AS:61490"><sip:SIPPEERusername@AS.AS.AS.AS:61490></a><br>
Proxy-Authorization: Digest username="SIPPEERusername",
realm="domain.tld", nonce="46ef24d9",
uri=<a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060">"sip:3221112233@A1.A1.A1.A1:5060"</a>,
response="14ecbfc7df24b49926151284c123ea11", algorithm=MD5<br>
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, UPDATE<br>
Max-Forwards: 70<br>
Privacy: none<br>
P-Asserted-Identity: <a class="moz-txt-link-rfc2396E" href="sip:3224445566@sip.domain.tld"><sip:3224445566@sip.domain.tld></a><br>
User-Agent: A5000 R52-H2C0205<br>
P-Behind-Gsi: 192.168.6.1<br>
Content-Type: application/sdp<br>
Content-Length:195<br>
<br>
v=0<br>
o=- 0 0 IN IP4 sip.domain.tld<br>
s=-<br>
i=(o=IN IP4 10.1.2.35)<br>
c=IN IP4 AS.AS.AS.AS<br>
t=0 0<br>
m=audio 62654 RTP/AVP 8 0<br>
a=rtcp:65115<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=ptime:20<br>
<br>
<br>
<-------------><br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] ---
(16 headers 11 lines) ---<br>
[Nov 18 15:14:35] VERBOSE[2255] netsock.c: [Nov 18 15:14:35] ==
Using SIP RTP TOS bits 184<br>
[Nov 18 15:14:35] VERBOSE[2255] netsock.c: [Nov 18 15:14:35] ==
Using SIP RTP CoS mark 5<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Sending to AS.AS.AS.AS : 61490 (no NAT)<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Using INVITE request as basis request - 0201FFFFCCFEA242<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Found peer 'SIPPEERusername' for 'SIPPEERusername' from
AS.AS.AS.AS:61490<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] <br>
<--- Reliably Transmitting (NAT) to AS.AS.AS.AS:61490 ---><br>
SIP/2.0 401 Unauthorized<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK6996345481960200906;received=AS.AS.AS.AS;rport=61490<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=33015DBD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a>;tag=as1ba6ed56<br>
Call-ID: 0201FFFFCCFEA242<br>
CSeq: 1 INVITE<br>
Server: Asterisk PBX 1.6.2.20<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
NOTIFY, INFO<br>
Supported: replaces, timer<br>
WWW-Authenticate: Digest algorithm=MD5, realm="domain.tld",
nonce="3df09f45"<br>
Content-Length: 0<br>
<br>
<br>
<------------><br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Scheduling destruction of SIP dialog '0201FFFFCCFEA242' in 32000
ms (Method: INVITE)<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] <br>
<--- SIP read from UDP:AS.AS.AS.AS:61490 ---><br>
ACK <a class="moz-txt-link-freetext" href="sip:3221112233@A1.A1.A1.A1:5060">sip:3221112233@A1.A1.A1.A1:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK6996345481960200906;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=33015DBD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a>;tag=as1ba6ed56<br>
Call-ID: 0201FFFFCCFEA242<br>
CSeq: 1 ACK<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@AS.AS.AS.AS:61490"><sip:SIPPEERusername@AS.AS.AS.AS:61490></a><br>
Max-Forwards: 70<br>
User-Agent: A5000 R52-H2C0205<br>
P-Behind-Gsi: 192.168.6.1<br>
Content-Length: 0<br>
<br>
<br>
<-------------><br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] ---
(11 headers 0 lines) ---<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] <br>
<--- SIP read from UDP:AS.AS.AS.AS:61490 ---><br>
INVITE <a class="moz-txt-link-freetext" href="sip:3221112233@A1.A1.A1.A1:5060">sip:3221112233@A1.A1.A1.A1:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK847851481531358325;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=340163BD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a><br>
Call-ID: 0201FFFFCBFE9C42<br>
CSeq: 1 INVITE<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@AS.AS.AS.AS:61490"><sip:SIPPEERusername@AS.AS.AS.AS:61490></a><br>
Proxy-Authorization: Digest username="SIPPEERusername",
realm="domain.tld", nonce="3df09f45",
uri=<a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060">"sip:3221112233@A1.A1.A1.A1:5060"</a>,
response="80683cd640815b362f74afcfcb68809a", algorithm=MD5<br>
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, UPDATE<br>
Max-Forwards: 70<br>
Privacy: none<br>
P-Asserted-Identity: <a class="moz-txt-link-rfc2396E" href="sip:3224445566@sip.domain.tld"><sip:3224445566@sip.domain.tld></a><br>
User-Agent: A5000 R52-H2C0205<br>
P-Behind-Gsi: 192.168.6.1<br>
Content-Type: application/sdp<br>
Content-Length:195<br>
<br>
v=0<br>
o=- 0 0 IN IP4 sip.domain.tld<br>
s=-<br>
i=(o=IN IP4 10.1.2.35)<br>
c=IN IP4 AS.AS.AS.AS<br>
t=0 0<br>
m=audio 62654 RTP/AVP 8 0<br>
a=rtcp:65115<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=ptime:20<br>
<br>
<br>
<-------------><br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] ---
(16 headers 11 lines) ---<br>
[Nov 18 15:14:35] VERBOSE[2255] netsock.c: [Nov 18 15:14:35] ==
Using SIP RTP TOS bits 184<br>
[Nov 18 15:14:35] VERBOSE[2255] netsock.c: [Nov 18 15:14:35] ==
Using SIP RTP CoS mark 5<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Sending to AS.AS.AS.AS : 61490 (no NAT)<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Using INVITE request as basis request - 0201FFFFCBFE9C42<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Found peer 'SIPPEERusername' for 'SIPPEERusername' from
AS.AS.AS.AS:61490<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] <br>
<--- Reliably Transmitting (NAT) to AS.AS.AS.AS:61490 ---><br>
SIP/2.0 401 Unauthorized<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK847851481531358325;received=AS.AS.AS.AS;rport=61490<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=340163BD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a>;tag=as26c6d395<br>
Call-ID: 0201FFFFCBFE9C42<br>
CSeq: 1 INVITE<br>
Server: Asterisk PBX 1.6.2.20<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
NOTIFY, INFO<br>
Supported: replaces, timer<br>
WWW-Authenticate: Digest algorithm=MD5, realm="domain.tld",
nonce="6a7cfd54"<br>
Content-Length: 0<br>
<br>
<br>
<------------><br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35]
Scheduling destruction of SIP dialog '0201FFFFCBFE9C42' in 32000
ms (Method: INVITE)<br>
[Nov 18 15:14:35] VERBOSE[2255] chan_sip.c: [Nov 18 15:14:35] <br>
<--- SIP read from UDP:AS.AS.AS.AS:61490 ---><br>
ACK <a class="moz-txt-link-freetext" href="sip:3221112233@A1.A1.A1.A1:5060">sip:3221112233@A1.A1.A1.A1:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP
AS.AS.AS.AS:61490;branch=z9hG4bK847851481531358325;rport<br>
From: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@sip.domain.tld:5060"><sip:SIPPEERusername@sip.domain.tld:5060></a>;tag=340163BD<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:3221112233@A1.A1.A1.A1:5060"><sip:3221112233@A1.A1.A1.A1:5060></a>;tag=as26c6d395<br>
Call-ID: 0201FFFFCBFE9C42<br>
CSeq: 1 ACK<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:SIPPEERusername@AS.AS.AS.AS:61490"><sip:SIPPEERusername@AS.AS.AS.AS:61490></a><br>
Max-Forwards: 70<br>
User-Agent: A5000 R52-H2C0205<br>
P-Behind-Gsi: 192.168.6.1<br>
Content-Length: 0<br>
<br>
<br>
<br>
Thanks.<br>
<br>
Kind regards,<br>
Jonas.<br>
</font>
</body>
</html>