Asterisk behind nat?

If asterisk server is located behind NAT so which parameters must be changed ?
2 ip phones are same local network with asterisk and they can call eachother. But one ip phone is not same local network. This phone is upper network. I mean wan side of the router. Asterisk and other phones are in lan side of the router.
Which parameters should be adjusted in freepbx?