[Asterisk-Users] Asterisk NAT spa-2000

Wiley E. Siler wsiler at e2020inc.com
Sun Jul 18 10:48:27 MST 2004


I would comment out these lines in sip.conf

;externip=111.222.333.444
;localnet=192.168.1.0
;localmask=255.255.255.0 


Then set nat=no

-----Original Message-----
From: Simon Chappell [mailto:s.chappell at isnsuk.com] 
Sent: Sunday, July 18, 2004 4:49 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Asterisk NAT spa-2000

Hi All,

I have a asterisk box that is now on its own static address on the
net.it was originally behind a nat firewall.
The problem I have is that the remote SPA-2000's that are behind nat
firewalls now fail.

here is relevent sip.con entry
[2001]
type=friend
username=2001
host=dynamic
defaultip=81.178.77.67
allow=ulaw
dtmfmode=rfc2833
mailbox=2001 at local
context=sip
callerid="James" <2001>
secret=hidden
canreinvite=no
allow=ulaw
nat=yes
qualify=yes

I added the nat and qualify entries after hunting round google but still
get this error, spot the no nat bit.
 to 81.178.77.67:34504
Retransmitting #2 (no NAT):
OPTIONS sip:81.178.77.67:34504 SIP/2.0
Via: SIP/2.0/UDP 62.188.201.123:5060;branch=z9hG4bK68af34fa
From: "asterisk" <sip:asterisk at 62.188.201.123>;tag=as5582cfae
To: <sip:81.178.77.67:34504>
Contact: <sip:asterisk at 62.188.201.123>
Call-ID: 338da4884b37c7f352f548ae133cdd4a at 62.188.201.123
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Date: Sun, 18 Jul 2004 12:43:12 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Length: 0

any ideas anyone

thanks in advance

Simon

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list