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:[EMAIL PROTECTED] 
Sent: Sunday, July 18, 2004 4:49 AM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
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:[EMAIL PROTECTED]>;tag=as5582cfae
To: <sip:81.178.77.67:34504>
Contact: <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

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

Reply via email to