Configuring Twilio SIP Trunk (Account Registered) with RingQ 

Introduction


This guide walks you through the steps to configure a Twilio SIP Trunk (Account Registered) 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.
Login to your Twilio account
2. Navigate to Menus Voice > Manage & SIP domains

3. Click on the “+” to create a new SIP Trunk.

Add a new SIP Trunk in Twilio
4. Enter your friendly name and SIP URI and leave the default settings. If you need any specific feature like recording, you can enable the options.

5. Select the Termination SIP URI and make sure the SIP URI is available.

Voice Authentication
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.

Credentials


Credentials
1. 1. Click on the “+” to create credentials.
Save your credentials for Twilio SIP Trunk
2. The above credentials will be used to register the trunk on the RINGQ Instance. Copy the username & password as we add them to your RingQ instance.

SIP Registration


SIP Registration
Allow SIP Endpoints to register with this SIP Domain. When you configure your SIP endpoint, you must specify the localized SIP Domain that you want to register, for example: {domain-name}.sip.us1.twilio.com for North America Virginia (US1). Credential Lists must always be specified.

Enable SIP registration and select the credentials that we created.

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.RingQ Policy for Twilio SIP Trunk Header manipulationHeader manipulation
8. 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
9. Under the trunk menu, select origination URIs.

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

Add a DID number
11. 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.

Registered Based Twilio SIP Trunk Configuration.
6. Add the SIP Trunk Details:

a. Enter the trunk name.

b. Type of Authentication – select Register Based.

c. Leave the username and password fields empty.

d. Enter the Outbound caller ID that you like to use as the main number.

e. Create the Trunk by clicking on “Save”.

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.