The general environment for MyPBX and users in different locations is: MyPBX and users are both behind router and using the private IP.
Note: Since the MyPBX doesn’t have the public IP, we need to set up “port forwarding” function in the router.
Step 1. Set up “port forwarding” function in the router for MyPBX.
Example: The router’s public IP is “220.127.116.11”.
Because the MyPBX is behind the router, Register to MyPBX remotely, you need to forward the SIP port in your router, so all the packets received on the router WAN port (18.104.22.168:5060) will be forwarded to the MyPBX (192.168.5.150:5060). Below is the setting page in a Linksys router:
Note: we must map UDP port 5060 and UDP port 10000-12000.
Step 2. Configure NAT settings in MyPBX.
Path: PBX ->Advanced settings SIP Settings -> NAT
Configure the NAT settings according to the page below.
External IP: your router’s public IP address
Local Network Address: 192.168.5.0/255.255.255.0 (change this according to your network configuration)
NAT mode: Yes
Allow RTP Reinvite: No
Step 3. Set up an extension in MyPBX (e.g. 509).
Extension: 509; Phone number of this extension
Caller ID: 509;
Note: please enable NAT.
Step 4. Set up IP Phone register to 509 extension (e.g. Yealink IP Phone).
Please note the SIP Server Option, and it's IP is the your router’s public IP address. If connect correctly, the Register status will become “Registered”.