1. Create an Account with the SIP trunk provider.
To start with, you need to have an account from your SIP trunk provider.
2. Configure Termination and Origination in Twilio
2.1. Go to Elastic SIP Trunking > Trunks > Termination > Termination URI, configure your localized Termination SIP URI.
2.2. Go to Elastic SIP Trunking > Trunks > Termination > Authentication, authenticate your PBX domain.
2.3. Go to Elastic SIP Trunking > Trunks > Origination, configure your localized Origination SIP URI with the region parameters.
3. Add a SIP Trunk in P-Series PBX System
After you get the SIP trunk account, you need to add a SIP trunk in Yeastar P-Series PBX System.
Go to Extension and Trunk > Trunk, click Add.
4. Configure the trunk
Basic
Detailed Configuration
The parameters of Twilio are embedded. You don’t have to figure out Trunk Type, Transport, and Port.
5. Check the Trunk Status
Click Save and Apply. Check if the trunk is connected in Status.
To make outbound calls via the newly created SIP trunk, you need to configure an outbound route for the trunk.
1. Create an Outbound Route
Go to Call Control > Outbound Route, click Add.
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
3. Click Save and Apply
Now you can make outbound calls through the SIP 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.
To specify how calls from the SIP trunk should be routed, you need to configure an inbound route for the SIP trunk.
1. Create an Inbound Route
Go to Call Control > Inbound Route, click Add.
2. Configure the Inbound Route
3. Click Save and Apply
When you call in the SIP trunk, the call will be routed to the destination configured on the inbound route.