I have grandstream ht801 gates installed in 4 different locations
On the freepbx server for the “chan_pjsip” protocol, I have the non-standard port 24867 selected
When my firewall is turned off, everything works fine.
In the “asterisk info” tab, I have this info:
101/sip:[email protected]:5060
102/sip:[email protected]:46815
103/sip:[email protected]:5060
104/sip:[email protected]:5060
When I run the firewall and restart 4 voip gateways in different locations, only 3 voip gateways connect.
Extensions “102” stops working
When I declare the IP address 19.19.19.19 in the trusted zone, start the firewall and then restart the VOIP gateway, the connection is established (works)
When the address 19.19.19.19 is not in the trusted site and the firewall is on, the VOIP gateway does not connect (does not work)
Unfortunately, the IP addresses change every 2 days
The remote gateway is not registering.
I swapped two gates places (without changing the configuration), moved gate 102 to location 103 and gate 103 to location 102.
It follows that the problem only occurs in one location.
I cannot connect from the computer using the 3CX Phone application when the firewall is on, when the firewall is turned off, it gets a connection (I log in to my account).
When connected to 3cx, I also have a different port than 5060 in the “Asterisk info” tab
I decided to start the firewall again.
The conclusions I have at the moment are that the reason is the operator providing the internet or the router at the client 102 (no possibility to change the internet operator).
As I replaced the voip gates in two locations, the problem remained in location 102 all the time.
For some reason, the voip gateway of this Internet operator at the client 102 uses a different port than 5060, the same is the case when I connect to the SIP account using the 3cx program on the computer, in the Asterisk Info tab by the user there is a port other than 5060.
PS. I have a VoIP server on port 24867
Everything works fine when I turn off the firewall.
When the firewall is on, the phones work only at the clients 101,103,104, but they do not work at the client 101 and on the computer in the 3cx application
It worked, it was that simple.
The only question is why some clients who used port 5060, despite the “SIP Protocol (pjsip)” option turned off, were able to connect without any problems, while clients who used port other than 5060 could not get a connection.