Phones Behind Nat

Home » Asterisk Users » Phones Behind Nat
Asterisk Users 2 Comments

I have a setup where I have polycom phones in an office, behind firewall, going out to a server located elsewhere. I have set nat=force_rport,comedia for my phones.

so if I call OUT to my cell I get audio both ways and the call is fine.

My issue is if I call phone to phone in the office the phone doesnt even ring. The CLI shows I’m calling the correct extension like SIP/524.

I am using asterisk 11.19.0

Is there another setting to correctly to this type of calling?

Thanks,

Jerry

2 thoughts on - Phones Behind Nat

  • There are usually two issues that can cause this behaviour. One is that you do not have a correct “localnet” definition and the other is that you have directmedia=yes on your sip.conf.

  • The lack of sufficient connectivity to signal ringing suggests taking a peek with wireshark may be fruitful as well as reviewing the configuration of the endpoints.

    Can you check the web page on the phones to confirm the IP addresses and netmasks are as expected? (What you think your configuration does is less important than what the phone thinks it does.)

    I recently broke a lot of things between my office and my home when I
    decided to split 192.168.0.0 with a 255.255.255.128 net mask.

    I also recently broke a working configuration by running Asterisk and OpenSIPS on 5060. The phones would ring but could not answer. Lost a lot of time until I started confirming the really basic stuff and entered
    ‘sudo netstat -a -n -p | grep 5060’