I installed FreePBX out of the box with the current version 2204-1. The server IP address is 10.70.30.10/24.
After installation, I only configured internal telephony. I configured via “Setting”->“Asterisk SIP settings” only local networks (10.70.0.0/16 as local). And I create 4 extensions: 1511, 1512 and 1578, 1579.
Next, I set up the distribution’s built-in OpenVPN Server. Its config file is below:
server 10.70.31.0 255.255.255.0
push “route 10.70.0.0 255.255.0.0”
keepalive 10 120
In addition, a line has been added to the /etc/sysctl.conf file net.ipv4.ip_forward=1.
After that, the following situation occurs:
- Phones 1511 and 1512 in the local segment 10.70.30.0/24 ring and work fine
- Phones 1578 and 1579 (through openvpn and receiving addresses in 10.70.31.0/24) call local and work fine
- Local phones 1511 and 1512 when making a call to remote phones (OpenVPN clients) ring, i.e. a dial tone is heard on the handset, but there is no call on your remote phone.
All phones ping each other.
What could be the problem?