Peer Trunk Configuration Guide

How to configure peer trunk with Yeastar S-Series VoIP PBX

Configure a Peer Trunk

1. Create an Account with the peer trunk provider
To start with, you need to have an account from your peer trunk provider.

2. Add a Peer Trunk in S-Series VoIP PBX
After you get the peer trunk account, you need to add a trunk in Yeastar S-Series VoIP PBX.
Go to Settings > PBX > Trunks, click Add.

1 Add Trunk - Yeastar S-Series

3. Configure the trunk
If your trunk provider has been certified by Yeastar officially, you can select “your country” from the drop-down list and select the “ITSP name”. All the parameters are embedded except the account registration information. If your trunk provider is not a Yeastar-certified one, then please choose General and fill in all the parameters needed.

2. Choose ITSP - Yeastar S-Series Peer
  • Name: give this peer trunk a name to help you identify it.
  • Protocol: SIP.
  • Trunk Type: Peer Trunk.
  • Transport: UDP, TCP, TLS, or DNS-NAPTR. The default transport is already embedded.
  • Hostname: your trunk account hostname or IP address.
  • Domain: same as hostname.
  • Caller ID Number: your trunk account DID number.
  • Please make sure with your peer trunk provider that the Public IP address of your S-Series PBX is in their allowlist.

4. Check the Trunk Status
Click Save and Apply. Go to PBX Monitor to check if the peer trunk is connected successfully as the screenshot below shows.

3. Check PBX Status - Yeastar S-Series Peer

Configure the Outbound Route with Peer Trunk

To make outbound calls via the newly created peer trunk, you need to configure an outbound route for the trunk.
1. Create an Outbound Route
Go to Settings > PBX > Call Control > Outbound Routes, click Add.

4. Add Outbound - Yeastar S-Series

2. Configure the Outbound Route
The system compares the number with the pattern that you have defined in your route 1. If it matches, it will initiate the call using the selected trunks. If it does not, it will compare the number with the pattern you have defined in route 2 and so on. The outbound route which is in a higher position will be matched firstly.
You can adjust the outbound route sequence by clicking these buttons

5. Outbound Configuration - Yeastar S-Series Peer
  • Route Name: give this outbound route a name to help you identify it.
  • Dial Patterns: set the dial patterns. As the settings below, to make calls via the peer trunk, you need to precede the number to be dialed with the prefix 8.
  • Dial Pattern: 8.
  • Strip: 1
  • Member Extensions: select the extensions that are allowed to make calls through the outbound route.
  • Member Trunks: select the peer trunk.

3. Click Save and Apply
Now you can make outbound calls through the peer trunk. As the dial patterns configured above, you need to dial “8” before the destination number.
For example, to call the number “01234567”, you need to dial “801234567” on your phone.

Configure the Inbound Route with Peer Trunk

To specify how calls from the peer trunk should be routed, you need to configure an inbound route for the peer trunk.
1. Create an Inbound Route
Go to Settings > PBX > Call Control > Inbound Routes, click Add.

6. Add Inbound - Yeastar S-Series

2. Configure the Inbound Route

7. Inbound Configuration - Yeastar S-Series Peer
  • Name: give this inbound route a name to help you identify it.
  • Member Trunks: choose the peer trunk.
  • Destination: select the destination where the incoming calls will be routed.

3. Click Save and Apply
When you call in the peer trunk, the call will be routed to the destination configured on the inbound route.