I have a dozen or so IP phones set up on a LAN using Asterisk/FreePBX which work just fine, when I try to connect one externally (WAN, not VPN) it doesn’t get connected. I’ve put in the Company’s public IP as the Proxy in the IP Phone’s settings and directed traffic on UDP 5060 to the PBX on the router/firewall but it can’t get though. Is there anything else to set or anything I can check in my configuration which might indicate why it fails to connect?
My IP phone just doesn’t connect, it says “Failed” on the status menu. It won’t connect to the PBX, I don’t know if this is a routing problem or a firewall probelm, or if I have to set up some extra permissions in some configuration files somewhere, I don’t know what’s wrong. Is there any way I cna check to find out?
2.9.3 When asterisk is behind a NAT do not forget to specify:
externip = X.X.X.X ;(substitute your public ip address)
localnet = 192.168.X.0/255.255.255.0 ;(substitute your lan subnet address)
Ports to forward on router:
4569 TCP/UDP - iax
5004-5082 TCP/UDP - sip
10000-20000 TCP/UDP - sip
Nothing happens on the console when I try to connect the phone and fail so I’ve nothing to post.
I DO see it outputting information when I answer/make calls, etc. but it doesn’t do anything when I attempt to connect a phone and fail (even if i sucessfully connect a phone on the LAN that CLI screen doesn’t show anything) Have I checked this right?
The pbx is static, the phone is on DHCP. If it try the phone on the internal network using the pbx’s internal IP it works even though the phone is still using DHCP there too. I just can’t get in using the public ip.
You do have the correct entries in your sip_nat.conf file right?
This is all I have in mine
externip=10.10.10.10 <-- Your External IP provided by your provider. Not the gateway IP.
localnet=192.168.2.0/255.255.255.0 <----- Make sure this is correct and that the netmask is the same as on your net
Ports 5060 open UDP/TCP
Ports 10001 - 20000 open UDP/TCP
Download the xlite softphone and try it and see if it connects. It’s very simple to setup
and i’ve forwarded and opened:
4569, 5004-5082, 10000-20000 on TCP/UDP
I have just tried xlite and if i connect using the local network IP of the PBX it connect just fine, if i use the public IP I get Registration error 403 - Forbidden (Bad auth), bearing in mind I’m using the exact same SIP login extention/password. I guess it must be something in the asterisk configuration not the linksys phone since xlite responds the same way.