I just got asterisk running on my linux server and I'm trying to establish a connection with an xlite client on my LAN. When xlite attempts to log on, asterisk displays this error:
chan_sip.c:10879 handle_request_register: Registration from 'My Name <sip:2007@my.domain>' failed for 10.0.1.106' - User name / auth name mismatch
Following the O'Reilly book on Asterisk, my sip.conf file looks like this:
(the lan is nat'd, but the connection is internal - I'm not testing that part of the network yet, although my pix allows 5060 and 5004 connections)
[general]
context=default
srvlookup=yes
[2007]
type=user
secret=hello
qualify=yes
nat=no
host=10.0.1.106
canreinvite=no
context=internal
My extensions.conf file shows:
[internal]
exten => 100,1,Dial(SIP/2007)
exten => 611,1,Echo()
And my xlite log file shows this:
© 2004 Xten Networks, Inc. All rights reserved.
X-Lite release 1105d build stamp 99999
License key: 7BAE08E072302C24E8D2D3887C
D42FAC
Established SIP protocol listen on: 10.0.1.106:5060
SIP: 10.0.1.106:5060
RTP: 10.0.1.106:5004
NAT: 10.0.1.106
Discovered Blocked Firewall
PROXY#0: 10.0.1.104:5060
SEND TIME: 2059337154
SEND >> 10.0.1.104:5060
REGISTER sip:my.domain SIP/2.0
Via: SIP/2.0/UDP 10.0.1.106:5060;rport;bran
ch=z9hG4bK
398DABCFD4
D0DA05780C
978E8CBBE2
9D
From: My Name <sip:2007@my.domain>;tag=1
362010897
To: My Name <sip:2007@my.domain>
Contact: "My Name" <sip:2007@10.0.1.106:5060>
Call-ID: 0B2AE56E582AF5CE562A69C9A6
4825E8@my.
domain
CSeq: 45073 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105d
Content-Length: 0
RECEIVE TIME: 2059337155
RECEIVE << 10.0.1.104:5060
SIP/2.0 404 Not found
Via: SIP/2.0/UDP 10.0.1.106:5060;branch=z9h
G4bK398DAB
CFD4D0DA05
780C978E8C
BBE29D;rec
eived=10.0
.1.106;rpo
rt=5060
From: My Name <sip:2007@my.domain>;tag=1
362010897
To: My Name <sip:2007@my.domain>;tag=a
s706d5f7b
Call-ID: 0B2AE56E582AF5CE562A69C9A6
4825E8@my.
domain
CSeq: 45073 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:2007@10.0.1.104>
Content-Length: 0
My xlite configuration looks pretty straightforward, but if you need I can send entries for that too. Let me know what's wrong, thanks.