Introduction
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.
2. NAT
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.
1) STUN
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 110.80.34.152, 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
Example:
INVITE sip:testyeastar2@91.90.161.236:5060 SIP/2.0
Record-Route: <sip:213.218.116.66;lr>
Record-Route: <sip:213.218.116.65;lr>
Record-Route: <sip:213.218.116.66;lr>
Via: SIP/2.0/UDP 213.218.116.66;branch=z9hG4bKe5e1.14399d92.0
To: <sip:0717165226@sip.freeconet.pl>
From: "Yeastar Jason" <sip:717161234@sip.freeconet.pl>;tag=885823471
Call-ID: 169122250@192.168.5.71
CSeq: 2 INVITE
Contact: <sip:szkw@89.228.174.29:5063>
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRI BE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 8
User-Agent: Yealink SIP-T28P 2.60.0.110
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 308
2 Comments