Config for PlusNet VOIP service

I’m trying to use the PlusNet free VOIP service with Asterisk. My sip.conf is listed below. The Asterisk server is behind a Pix using static NAT (internal address 192.168.128.4, external 80.178.94.141), so it has it’s own IP address, and for testing I’ve configured the Pix to allow all incoming UDP. The problem is that if I comment out the following lines in the [general] section:

[general]

;externip=80.178.94.141
;localnet=192.168.128.0/24
;nat=yes

Asterisk connects fine and I can make outgoing calls but all incoming calls get diverted to voicemail. Obviously the PlusNet VOIP system thinks I haven’t connected so there’s no route for incoming calls. This makes sense because I presumably need to configure the external IP. However if I uncomment the lines:

[general]

externip=80.178.94.141
localnet=192.168.128.0/24
nat=yes

then Asterisk won’t connect at all. “sip show peers” shows the peer as unreachable. I’ve tried “sip debug peer 216632” but I can’t see anything obviously wrong in the stuff it prints. Apologies if this is a FAQ: I’ve found a few questions about PlusNet but nothing that helps with this problem.

John Rennie

sip.conf

[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
externip=80.178.94.141
localnet=192.168.128.0/24
nat=yes

[authentication]
register => 216632:mypasswd@sip.plus.net
registertimeout=300
registerattempts=0

[216632]
type=peer
host=sip.plus.net
nat=yes
context=ratsauce
username=216632
fromuser=216632
secret=mypasswd
qualify=1000
canreinvite=no