[Asterisk-Users] Problem with 401 Unauthorized
Mike Miller
mikeage at gmail.com
Tue Mar 29 11:44:23 MST 2005
On Tue, 29 Mar 2005 09:28:05 -0700, Kevin P. Fleming
<kpfleming at starnetworks.us> wrote:
> Mike Miller wrote:
>
> > 1.0.6 from an ubuntu package. I'd also tried a version compiled from
> > source, but with the same results.
> >
> > I tried taking out username, but it didn't help.
>
> OK, then we need a _full_ log, with:
>
> - sip debug
> - set verbose 255
> - set debug 255
>
> There should be (at least) a message on the console about why Asterisk
> is rejecting the REGISTER request.
Kevin,
Thanks for all your help. I'm appending a full log, as requested.
asterisk at arthur:/var/log/asterisk$ asterisk -c
Asterisk 1.0.6-BRIstuffed-0.2.0-RC7k, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster at digium.com>
=========================================================================
[ Booting......Mar 29 20:42:39 WARNING[22909]: res_musiconhold.c:565
moh_register: Unable to open pseudo channel for timing... Sound may
be choppy.
.Mar 29 20:42:39 WARNING[22909]: res_musiconhold.c:205 spawn_mp3:
Found no files in '/usr/share/asterisk/mohmp3'
Mar 29 20:42:39 WARNING[22909]: res_musiconhold.c:278 monmp3thread:
unable to spawn mp3player
......Mar 29 20:42:39 NOTICE[22909]: res_odbc.c:133 load_odbc_config:
registered database handle 'mysql1' dsn->[MySQL-asterisk]
Mar 29 20:42:39 NOTICE[22909]: res_odbc.c:133 load_odbc_config:
registered database handle 'mysql2' dsn->[MySQL-asterisk]
Mar 29 20:42:39 NOTICE[22909]: res_odbc.c:415 load_module: res_odbc loaded.
.Mar 29 20:42:39 NOTICE[22909]: config.c:888 ast_config_register:
Registered Config Engine odbc
Mar 29 20:42:39 NOTICE[22909]: res_config_odbc.c:190 load_module:
res_config_odbc loaded.
.......Mar 29 20:42:39 WARNING[22909]: chan_iax2.c:7487 load_module:
Unable to open IAX timing interface: No such file or directory
..Mar 29 20:42:39 WARNING[22909]: chan_skinny.c:2588 reload_config:
Unable to get our IP address, Skinny disabled
................................................................................................
]
Asterisk Ready.
*CLI> sip debug
SIP Debugging Enabled
*CLI> set verbose 255
Verbosity was 0 and is now 255
*CLI> set debug 255
Core debug was 0 and is now 255
*CLI>
Sip read:
REGISTER sip:192.168.1.100 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
Contact: <sip:203 at 192.168.1.100>
max-forwards: 10
expires: 900
user-agent: oSIP/Linphone-0.12.1
Content-Length: 0
11 headers, 0 lines
Using latest request as basis request
Sending to 192.168.1.100 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
Content-Length: 0
to 192.168.1.100:5060
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
WWW-Authenticate: Digest realm="asterisk", nonce="2f740dc2"
Content-Length: 0
to 192.168.1.100:5060
Scheduling destruction of call '2988399483 at 192.168.1.100' in 15000 ms
Sip read:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
Content-Length: 0
10 headers, 0 lines
Message is REGISTER
Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
WWW-Authenticate: Digest realm="asterisk", nonce="2f740dc2"
Content-Length: 0
11 headers, 0 lines
Message is REGISTER
Urgent handler
Sip read:
REGISTER sip:192.168.1.100 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
Contact: <sip:203 at 192.168.1.100>
max-forwards: 10
expires: 900
user-agent: oSIP/Linphone-0.12.1
Content-Length: 0
11 headers, 0 lines
Using latest request as basis request
Sending to 192.168.1.100 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
Content-Length: 0
to 192.168.1.100:5060
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
WWW-Authenticate: Digest realm="asterisk", nonce="1c9aadf2"
Content-Length: 0
to 192.168.1.100:5060
Scheduling destruction of call '2988399483 at 192.168.1.100' in 15000 ms
Sip read:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
Content-Length: 0
10 headers, 0 lines
Message is REGISTER
Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
WWW-Authenticate: Digest realm="asterisk", nonce="1c9aadf2"
Content-Length: 0
11 headers, 0 lines
Message is REGISTER
Urgent handler
Sip read:
REGISTER sip:192.168.1.100 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
Contact: <sip:203 at 192.168.1.100>
max-forwards: 10
expires: 900
user-agent: oSIP/Linphone-0.12.1
Content-Length: 0
11 headers, 0 lines
Using latest request as basis request
Sending to 192.168.1.100 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
Content-Length: 0
to 192.168.1.100:5060
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
WWW-Authenticate: Digest realm="asterisk", nonce="7c6b95df"
Content-Length: 0
to 192.168.1.100:5060
Scheduling destruction of call '2988399483 at 192.168.1.100' in 15000 ms
Sip read:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
Content-Length: 0
10 headers, 0 lines
Message is REGISTER
Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.100:5060;branch=z9hG4bK187848357
From: <sip:203 at 192.168.1.100>;tag=698000752
To: <sip:203 at 192.168.1.100>;tag=698000752
Call-ID: 2988399483 at 192.168.1.100
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:203 at 192.168.1.100>
WWW-Authenticate: Digest realm="asterisk", nonce="7c6b95df"
Content-Length: 0
11 headers, 0 lines
Message is REGISTER
Urgent handler
Urgent handler
More information about the asterisk-users
mailing list