[Asterisk-Users] Problem with 401 Unauthorized

Mike Miller mikeage at gmail.com
Wed Mar 30 00:17:53 MST 2005


On Tue, 29 Mar 2005 20:12:33 -0700, Kevin P. Fleming
<kpfleming at starnetworks.us> wrote:
> Mike Miller wrote:
> 
> > Mar 30 04:39:30 VERBOSE[32543]:   == Parsing '/etc/asterisk/sip.conf':
> > Mar 30 04:39:30 VERBOSE[32543]:   == Parsing '/etc/asterisk/sip.conf': Found
> > Mar 30 04:39:30 DEBUG[32543]: Unable to find key '203' in family 'SIP/Registry'
> > Mar 30 04:39:30 VERBOSE[32543]:   == SIP Listening on 0.0.0.0:5060
> > Mar 30 04:39:30 VERBOSE[32543]:   == Using TOS bits 0
> > Mar 30 04:39:30 VERBOSE[32543]:   == Registered channel type 'SIP'
> > (Session Initiation Protocol (SIP))
> >
> > Is the DEBUG message there significant?
> 
> No, that's not significant.
> 
> '401 Unauthorized' is a perfectly valid response from Asterisk, because
> you have supplied a secret for that peer (203). What is supposed to
> happen is that the SIP UAC (Linphone) sees the 401 response (with a
> WWW-Authenticate header included) and retries the REGISTER with
> authorization info included.
> 
> However, here's something I hadn't noticed before: Asterisk is
> _receiving_ its own '100 Trying' response! What are the IP addresses of
> Asterisk and the softphone here? I suspect that .100 is the Asterisk
> server, in which case the Contact header of the REGISTER request from
> Linphone is completely wrong, since it should contain its own address.

They're both running on 192.168.1.100

Sorry -- I probably should've clarified that. 

I just tried installing asterisk on a different machine, with the same
.conf files -- lo and behold, it works.

Strange, but this will work. Thanks for your help.



More information about the asterisk-users mailing list