Configuring Twilio SIP Trunk (Peer Connection) with RingQ 

Introduction


This guide walks you through the steps to configure a Twilio SIP Trunk (Peer Connection) for use with RingQ. It covers the required settings on both the Twilio and RingQ sides to ensure secure, reliable call routing for inbound and outbound calls.

Twilio Configuration


1. Login to your Twilio account.

Setup a SIP Trunk in Twilio for RingQ
2. Navigate to Menus Elastic SIP Trunk & Trunks.
3. Click on Create new SIP Trunk.

Create new trunk in Twilio.

4. Enter your friendly name and click create –> Just leave the default setting. If you need any specific feature like recording, enable that here.

5. Save the trunk.

6. You will see a menu under the trunk name. Click on termination.

Select termination in Twilio.
7. Select the Termination SIP URI and make sure the SIP URI is available.

Add IP address rangeAuthenticate
8. IP Access Control Lists: To select one of your already-configured ACLs, click the “IP Access Control Lists” Pull-Down Menu here and choose the one you want to use. If you do not have any ACLs already configured, or want to add a new one, click the “+” button to the right of the Pull-Down Menu. RingQ Policy for Twilio SIP Trunk Header manipulationHeader manipulation
9. If you want to manipulate the header, you can use these options. For RingQ, remove the Plus simple on the DID number, use the below header manipulation rule.

Select origination
10. Under the trunk menu, select origination URIs.

Add your RingQ FQDN
11. Click “+” and add your RingQ FQDN.

Add a DID number
12. From the trunk Menu, select a number to assign a DID to this trunk. Add the Number button to select options.

RingQ Configuration


1. Login to your RINGQ instance.

Add Twilio SIP Trunk to RingQ
2. Go to Settings > Call Flow > SIP.
3. Click on the “+” in the top right hand corner to add a Supported SIP Template.Add a SIP Trunk to RingQ
4. Select the country that you want to configure.

5. Select the provider Logo.

6. Select the IP-Based Template.

Create a SIP Trunk in RingQ

7. Enter the trunk name.

8. Leave the user name & password fields empty.

9. Enter the Outbound caller id that you like to use as the main number.

10. Create the Trunk.

Green status color
11. You will see the Green color on the Status if the trunk is successfully connected.

Creating Outbound Rules


Creating outbound rules in RingQ
1. Go to Settings > Global > Outbound Rules.

2. Click on “Outbound Rule +” to add a rule.

Adding an outbound rule in RingQ
3. Enter the Trunk name and prefix details on how to route the calls.

4. Select Route as Twillio SIP.

Creating an Inbound Rule


Add DID in RingQ
1. Go to Settings > Call Flow > Add DID.

2. Click on “Outbound Rule +” to add a rule.
Click on Add DID
3. Click on add DID – shown above.

4. Enter the DID number.

5. Select trunk name.

6. Click on the “Create” button.

Available DID list
7. The DID will be shown in the available list. Simply drag and drop the DID where you need it (Queue, Extension IVR).

8. When you Drag the DID it will give you the option to create an extension/IVR/Queue or add to an existing extension/IVR/Queue.