There are some advanced settings on SIP settings page. Some of the settings are important and need to be set up properly.
1. Register attempts
Number of SIP REGISTER messages sent to a SIP Registrar before giving up. Default is 8, which means MyPBX will try register 8 times before giving up registration. If you have problem with your network going up and down and you keep losing the SIP registration, please set up register attempts to 0, forcing MyPBX to keep registering until it is registered.
When MyPBX is behind a NAT (firewall), you need to configure NAT setting for MyPBX if you want to use remote extension. This is a STUN like mechanism.
Note: before using remote extension, please disable ‘SIPALG’ in your router if it’s supported.
If MyPBX is installed in local network, which means that MyPBX owns a private IP address, you should do port mapping in your router, port 5060 and 10000-12000 are included as UDP ports mapping. You need to enable NAT setting for extensions on extensions configure page also.
Then go to MyPBX web interface SIP settings as below:
STUN address: input the STUN server and port
External IP: your router’s public IP address
External Host: your router’s domain
External refresh: 20 sec
Local Network Address:192.168.4.0/255.255.255.0 (change this to your network setting)
NAT mode: yes
Allow RTP Reinvite : no
Methods to Configure NAT
There are 3 methods to configure NAT: STUN, external IP address, External host.
Here are two examples for you, if you have got another stun server at your side, you can input the details here too.
Local network identification: the ip range which will be recognized as the local IP.
MyPBX’s private IP is 192.168.4.139. so we can configure it as: 192.168.4.0/24, which is equal to 192.168.4.0/255.255.255.0
So to configure the STUN, here is the the full example here:
2) External IP address(Recommend)
If you have got an external static IP address for the network, where MyPBX is installed, you can input the details here.
For example, the Public IP address at my side is 126.96.36.199, and MyPBX’s local IP is 192.168.4.139
3) External Host
If you haven’t got an fixed public IP address at your side, but you have a Dyndns host instead, you can try it too.
For example, the Dyndns host at my side is mypbx.dyndns.org
Refresh interval : 20 (default)
With NAT configured correctly, MyPBX will be working perfectly when it’s installed in your local network.
3. Advance settings
INVITE sip:email@example.com:5060 SIP/2.0
Via: SIP/2.0/UDP 188.8.131.52;branch=z9hG4bKe5e1.14399d92.0
From: "Yeastar Jason" <sip:firstname.lastname@example.org>;tag=885823471
CSeq: 2 INVITE
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRI BE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Yealink SIP-T28P 184.108.40.206