[Asterisk-Users] Problem with 401 Unauthorized

Mike Miller mikeage at gmail.com
Tue Mar 29 19:49:20 MST 2005


On Tue, 29 Mar 2005 15:42:01 -0700, Kevin P. Fleming
<kpfleming at starnetworks.us> wrote:
> Mike Miller wrote:
> 
> > 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
> 
> Well, unfortunately we're not getting any additional debug output from
> chan_sip here, but you may want to check your 'debug' log (specified via
> logger.conf) to see if anything else shows up.
> 
> In any case, there are a couple of things that _seem_ wrong with this
> REGISTER request:
> 
> - The To: header contains a tag, but it should not, the registrar
> receiving the REGISTER will assign its own tag
> 
> - The CSeq value is zero, and I don't think that's allowed; certainly
> many places in chan_sip treat a zero sequence value as non-existent
> 
> I don't know why you are experiencing this problem, when others don't...
> and I can't imagine that there is nobody else using Linphone out there :-)

Kevin,

I tried logging everything using logger.conf, and received the
attached log (I'm not sure if the list will let me attach a file --
let's see. If not, I have a copy posted at http://mikeage.net/full .

I don't think it's linphone related -- I received the exact same
results with kphone and xten.

The only thing I saw in the log that seemed relevant was the following:

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?

Thanks a lot for your help -- I know this is a weird problem ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: full.gz
Type: application/x-gzip
Size: 7728 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050329/022baea0/full.bin


More information about the asterisk-users mailing list