Need to set PJSIP NAT settings if PBX is not behind NAT?

Do we need to set any of the NAT settings under PJSIP if the PBX is not actually behind a NAT? We have a cloud hosted multi-tenant PBX that seems to work fine without any info like public IP filled in, and I don’t want to cause issues by just trying to add it now, but we are curious what best practice is as the the manual doesn’t seem to cover any other scenarios besides the PBX behind the same network as the phones.

If you are talking about External Media Address and External Signal Address, then I think they are only necessary if you have phones not on the same network as the PBX.

The PBX is in the cloud, so yes all phones would be on a different network.

Interesting, I had to set those fields or else my calls died at 30 seconds.

Does you PBX have a public IP directly on the network interface?

The dashboard now shows a public IP address. When I first installed the PBX it showed a 10.x.x.x private address. When I look at the IP address shown in the login message of an SSH terminal it still shows IP Address:

I have just removed the External Media Address and External Signal Address settings (because I can) and my calls do not fail after 30 seconds. I’ll leave it like this and see what happens.

I’ve learnt something, but I’m not sure what! :slight_smile:

Go under ADMIN > Network Settings and look at the IP address field, if that is a public IP you are not behind NAT, if that is a 10. then you are behind NAT and you definitely need the info in that field. I don’t have any IP listed in my Dashboard so I can not look up which one that would be.

Under Admin | Network | Network Settings I see only Hostname. It might be that way because I am using the Community version with no paid add-ons.

It also appears that you are using Version 3, I’m using Version 4.

This morning I updated to version 4.0.2-1 and my public address is now shown correctly in the SSH terminal login message.

As a test I have installed version 4.0.2-1 on another machine and it shows IP Address in the SSH login screen as a private 10.x.x.x address. I wish I knew how to tell VitalPBX that it is not behind a NAT.

Where would it even pick up a 10.x.x.x address if it is not behind NAT? Weird.

My mistake (can only blame my aging brain), it is behind a NAT.

Still looking for an answer to this question.

You do not need them

1 Like

Thank You, it appears to be working so I will leave it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.