Why x-lite behind NAT cant connect the asterisk behind NAT


#1

Hi,
Both the x-lite client and asterisk are behind NAT .When i connect asterisk using the x-lite ,the output log as following. Why i cant connect the asterisk? How should i configure it.I have looked throughed voip-info.org.But it seems no help to me.
You can login my server with account root,password is 111
Thanks for you help in advance!

© 2005 CounterPath Solutions Inc. All rights reserved.
X-Lite release 1105x build stamp 21407
License key: 74307869CB2744FA83E6ED945FACCCD3

Established SIP protocol listen on: 192.168.0.169:5060

Discovered Full Cone NAT Firewall

SIP: 192.168.0.169:5060
RTP: 192.168.0.169:8000
NAT: 60.176.207.171

PROXY#0: 219.82.111.16:5060

OUTBOUND-PROXY#0: 219.82.111.16:5060

SEND TIME: 268311080
SEND >> 219.82.111.16:5060
REGISTER sip:219.82.111.16 SIP/2.0
Via: SIP/2.0/UDP 60.176.207.171:5060;rport;branch=z9hG4bK04176F8C91BC4BCC9742E9E92ABB9499
From: 333 sip:333@219.82.111.16;tag=2578800247
To: 333 sip:333@219.82.111.16
Contact: “333” sip:333@60.176.207.171:5060
Call-ID: 19E962361C0545B5BC4F1E4F41C390E4@219.82.111.16
CSeq: 53933 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105x
Content-Length: 0

SEND TIME: 268312828
SEND >> 219.82.111.16:5060
REGISTER sip:219.82.111.16 SIP/2.0
Via: SIP/2.0/UDP 60.176.207.171:5060;rport;branch=z9hG4bK04176F8C91BC4BCC9742E9E92ABB9499
From: 333 sip:333@219.82.111.16;tag=2578800247
To: 333 sip:333@219.82.111.16
Contact: “333” sip:333@60.176.207.171:5060
Call-ID: 19E962361C0545B5BC4F1E4F41C390E4@219.82.111.16
CSeq: 53933 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105x
Content-Length: 0

SEND TIME: 268316078
SEND >> 219.82.111.16:5060
REGISTER sip:219.82.111.16 SIP/2.0
Via: SIP/2.0/UDP 60.176.207.171:5060;rport;branch=z9hG4bK04176F8C91BC4BCC9742E9E92ABB9499
From: 333 sip:333@219.82.111.16;tag=2578800247
To: 333 sip:333@219.82.111.16
Contact: “333” sip:333@60.176.207.171:5060
Call-ID: 19E962361C0545B5BC4F1E4F41C390E4@219.82.111.16
CSeq: 53933 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105x
Content-Length: 0

SEND TIME: 268322328
SEND >> 219.82.111.16:5060
REGISTER sip:219.82.111.16 SIP/2.0
Via: SIP/2.0/UDP 60.176.207.171:5060;rport;branch=z9hG4bK04176F8C91BC4BCC9742E9E92ABB9499
From: 333 sip:333@219.82.111.16;tag=2578800247
To: 333 sip:333@219.82.111.16
Contact: “333” sip:333@60.176.207.171:5060
Call-ID: 19E962361C0545B5BC4F1E4F41C390E4@219.82.111.16
CSeq: 53933 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105x
Content-Length: 0


#2

you need to configure nat=true (in asterisk web gui nat=1) for that extension.


#3

I have configure in sip_addtional.conf as
[333]
username=333
type=friend
secret=333
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=true
mailbox=333@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=device <333>

But the 333 account still cant connect to my asterisk behind nat. The client behind NAT too.