Hi, I just successfully configured my asterisk server. I have several PC in my LAN (using x-lite) and each of them can register to the server, call and receive. The problem is when I try to call outside (ex: 16049586111@sip.like2fone.com)… I always get the message “404 Not Found”. Can anyone help me about it?
Thanks in advance!
sip.conf
[general]
context=default
port=5060
bindaddr=0.0.0.0
srvlookup=yes
realm=xxx.homelinux.net
[phone1]
type=friend
username=phone1
secret=phone1
auth=md5
callerid=“phone1”
host=dynamic
nat=yes
reinvite=no
canreinvite=no
disallow=all
allow=gsm
[phone2]
type=friend
username=phone2
secret=phone2
auth=md5
callerid=“phone2”
host=dynamic
nat=no
canreinvite=no
disallow=all
allow=gsm
extensions.conf
[general]
static=yes
writeprotect=no
[default]
exten => phone1,1,Dial(SIP/phone1,20)
exten => phone1,2,Congestion
exten => phone2,1,Dial(SIP/phone2,20)
exten => phone2,2,Congestion
X-Lite Disgnostics
SEND TIME: 16229812
SEND >> 82.52.XXX.XXX:5060
INVITE sip:16049586111@sip.like2fone.com SIP/2.0
Via: SIP/2.0/UDP 82.52.XXX.XXX:5061;rport;branch=z9hG4bK305916976F04463EA27054B34838F161
From: phone1 sip:phone1@XXX.homelinux.net:5061;tag=1029368426
To: sip:16049586111@sip.like2fone.com
Contact: sip:phone1@82.52.XXX.XXX:5061
Call-ID: 270F45ED-E125-4A52-8BCF-47CC331A512B@192.168.0.8
CSeq: 10195 INVITE
Proxy-Authorization: Digest username=“phone1”,realm=“xxx.homelinux.net”,nonce=“3b1e89b5”,response=“1c20fc8698bdadd3a00aadcaca5f0ea3”,uri="sip:16049586111@sip.like2fone.com"
Max-Forwards: 70
Content-Type: application/sdp
User-Agent: X-Lite release 1103m
Content-Length: 296
v=0
o=phone1 16229781 16229796 IN IP4 82.52.XXX.XXX
s=X-Lite
c=IN IP4 82.52.XXX.XXX
t=0 0
m=audio 8000 RTP/AVP 0 8 3 98 97 101
a=rtpmap:0 pcmu/8000
a=rtpmap:8 pcma/8000
a=rtpmap:3 gsm/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:97 speex/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
RECEIVE TIME: 16229843
RECEIVE << 192.168.0.253:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 82.52.XXX.XXX:5061;branch=z9hG4bK305916976F04463EA27054B34838F161;received=192.168.0.8;rport=5061
From: phone1 sip:phone1@xxx.homelinux.net:5061;tag=1029368426
To: sip:16049586111@sip.like2fone.com;tag=as6bab6759
Call-ID: 270F45ED-E125-4A52-8BCF-47CC331A512B@192.168.0.8
CSeq: 10195 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: sip:16049586111@192.168.0.253
Content-Length: 0