In some cases, client might have a dedicated SIP trunk from the provider. This kind of SIP trunk usually offers a dedicated cable to be connected with which comes from a specific ISP router, and exclusive for voice only without Internet access function. So what's the plan?
Regarding to S-Series VoIP PBX, there are 3 points noted:
- Network interface should be configured as Dual Mode： One is for the SIP dedicated trunk. The other one is for local network and Internet access
- Static Routes and Default Network Interface should be configured well. The SIP dedicated trunk data goes through the interface that it connects, and the rest data goes through the other interface.
- If SIP remote extension solution is involved, the NAT settings should be taken into consideration. This is to avoid one-way problem.
Network Information Gathering
Here we have a sample for dummy use.
|Local network||IP address: 192.168.9.0/24, Gateway: 192.168.9.1|
|SIP Trunk||SIP trunk IP address & port: 18.104.22.168:5060; Interface IP address: 110.87.*.*, Gateway IP address: 22.214.171.124|
|Public IP||IP address: 120.41.*.*|
- The Local network depends on your own planning. It is the local network that the PBX is deployed.
- SIP Trunk IP address information was offered by the SIP trunk provider. Usually includes the interface IP address & gateway IP address, SIP trunk IP address & port.
- Public IP is the public IP address that the remote extension registers to.
Settings on the web interface
1. Network Settings
2. Add Static Route for the SIP trunk
Route table review
3. If remote extension solution is involved, please proceed.
Try this configuration but defenately not working for me. So the scenario is like this. I have 3 SIP Trunk Account.
A is from my telecom provider (with private sip trunk)
B from skype
C from some other company
So provider give me a Huawei HG8245H ONT router which configured with 2 WAN Connection. So one for the internet and one for the private sip trunk account. The sip trunk account can only be use by connecting to ethernet port number 2. So ethernet number 1, 3 and 4 is free for internet.
I have the following WAN information from my router.
SIP TRUNK: 10.0.0.10 / 5060 (UDP)
INTERNET WAN (This is NOT STATIC IP)
I try the above configuration but defenately not working for me. In the NAT Setting under PBX > General > SIP, I try to configured with EXTERNAL IP ADDRESS and EXTERNAL HOST since I'm using DDNS services, but both of them is not working.
Now, I have also try this.
In my Huawei HG8245H ONT router, there is a feature where I can setup a secondary IP address. So now I have 2 set of IP address with different class on my router.
LAN (The LAN port connect to a Hub which is also connect to the router)
192.168.100.101 / 255.255.255.0
WAN (The WAN port is connect to the router ethernet port number 2 which is private for the sip trunk)
192.168.111.2 / 255.255.255.248
In the static route, I have try the following but none of them work.
As for the NAT setting in PBX > General > SIP, I configured as follow.
NAT Type: External Host
External Host: XXXXX.ddns.net:5060
Refresh Interval: 120s
Local Network Ideentification: 192.168.100.1 / 255.255.255.0
Local Network Ideentification: 192.168.111.1 / 255.255.255.248
NAT Mode: Yes
And with this configuration, I can succesfully access the B and C SIP trunk account. But not the A which coming from my telecom company.
We've set up both configuration with the Yeastar S-Series. For the most part, using the single network configuration and rely solely on the LAN interface is the simplest.
We recently deployed a S100 on a site that had a Sophos firewall and the Sophos was not co-operating with consistently passing SIP traffic. As a fix we decided to leave the Sophos in place but get a second static IP from the ISP to dedicate to the WAN port of the S100. This has worked much better. The Sophos remains the default gateway/firewall for the network. We needed to set the default adapter in the S100 to be the WAN port to ensure the traffic routed properly. We also changed the SIP settings in the S100 to reference the dedicated static IP.
I've created a YouTube video about connecting a SIP trunk to the Yeastar S-Series Phone System. I hope it will be of some help. It can be found at: https://www.yeastar.ca/how-to/how-to-configure-sip-phone-lines-on-the-yeastar-phone-system
SIP trunk IP address & port: 10.33.12.69:5060 ,10.33.76.69:5060; Interface IP address: 10.27.199.130, Gateway IP address: 10.27.199.129 (WAN)
wan is no internet access
lan is internet access
how to route