I am just starting with Asterisk and I have a question regarding to the configuration required to traverse NAT. I have the following setup:
Local users — Asterisk(1) — NAT — Internet —Asterisk(2) with public IP— Users with public IP
I have done portforwarding and I have added the parameters externip and localnet to the general setion of sip.conf in Asterisk(1). However, I do not know if it is necessary to add nat=yes in the configuration of each local user (the ones that are behind nat in the same subnet as Asterisk(1)) or in the configuration of the users wit public IPs.
Could you explain me when when should I use this parameter and how it works?
Thank you very much in advance!