Do I need STUN?

0

My router has a "real" static outer IP address. Behind router's NAT there is an Asterisk server. Router is configured to forward 5060 UDP port to Asterisk machine. Do I need STUN server assuming that SIP clients will be in other cities, behind their own NATs?

Paul

Posted 2015-06-29T14:47:21.827

Reputation: 579

Answers

1

With static public IP address you do need STUN. It wouldn't hurt using it, but you can configure public IP statically:

[general]
externip=63.182.70.1
localnet=192.168.0.0/255.255.255.0

[peer1]
type=peer
nat=yes
qualify=yes

(example from http://www.smartvox.co.uk/astfaq_configbehindnat.htm)

You most likely would also need to forward RTP port range on router. Change port number on which asterisk is listening to other than 5060. One reason is security (less chance of random SIP scan), second - less risk of problems with router ALG.

TMSZ

Posted 2015-06-29T14:47:21.827

Reputation: 146

1Updated with quoted configuration. – TMSZ – 2015-08-04T06:18:06.213