[Asterisk-Users] trying to get trunk to register with * behind NAT

Jim Sturtevant jim.public at thesturtevants.com
Tue Mar 15 00:39:15 MST 2005


i've got * and phones in small home network all behind NAT. Outbound to
iconnect proxy works great. Now to get in/out working with another carrier.
Carrier2, Commpartners, i have working with one of the phones and a soft
phone without * just fine.  
 
Next I register the phone with * fine. Create a trunk, but it the trunk
fails to register... help 
 
I'm getting the following msg during registration: 
to 66.218.79.147:5060 
Retransmitting #5 (no NAT): 
REGISTER sip:xxxxx.net SIP/2.0 
 
SIP.CONF= 
; Note: If your SIP devices are behind a NAT and your Asterisk 
; server isn't, try adding "nat=1" to each peer definition to 
; solve translation problems. 
 
[general] 
 
; 2005-03-14 
externip={external ip} 
localnet=192.168.2.0 ;(i.e.192.168.1.0)  
localmask=255.255.255.0 ;(or whatever your localnet mask)  
nat=yes  
 
port = 5060 ; Port to bind to (SIP is 5060) 
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine) 
disallow=all 
allow=ulaw 
allow=alaw 
context = from-sip-external ; Send unknown SIP callers to this context 
callerid = Unknown 
 
#include sip_nat.conf 
#include sip_additional.conf 
 
 
register={userid}:{password}@{domain}.net 
 
[200] 
username=200 
type=friend 
secret=??? 
qualify=no 
port=5060 
pickupgroup= 
nat=never 
mailbox= 
host=dynamic 
dtmfmode=rfc2833 
disallow= 
context=from-internal 
canreinvite=no 
callgroup= 
callerid="Demo" <200> 
allow= 
 
[CP 9929] 
username={username} 
type=peer 
secret={password} 
host={host} 
 
[cp-in-01] 
type=user 
context=from-pstn 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050315/920fedfe/attachment.htm


More information about the asterisk-users mailing list