Skip to main content

Setting up a Twilio TwiML app for qualityRTC IVR

Here are a few steps to creating and connecting a Twilio TwiML Bin to qualityRTC:

If you are using qualityRTC with a Twilio infrastructure and would like to have more control over the announcement played during the Call Quality test, then one approach is using Twilio TwiML Bin (another approach is using Twilio Studio).

1. Create a Twilio subaccount

  • To keep your data and credentials secure, it is best if you create a subaccount to manage all qualityRTC related traffic separate from your production system.
  • In order to connect your account to qualityRTC, you will need to supply us with your Account SID and Auth Token.
  • To create a sub-account, go to Settings | Subaccounts and click the plus button:

    Note: Once created, write down the subaccount’s Account SID and Auth Token and make sure to create the Studio Flow within that subaccount.
  • We also support Twilio’s API key authentication mechanisms as well as the Auth Token mechanism.
  • If your security practices may include periodic Auth token regeneration, it would be preferable to provide us with the API key and secret instead.

2. Create a TwiML Bin

qualityRTC requires an Application SID, which is a TwiML App. What we want to do now is create a TwiML App that is based on a TwiML Bin.

  1. Go to the TwiML Bin console and create a new TwiML Bin. Here’s how our own sample TwiML Bin looks like:

    Note: Once created, copy the URL from the TwiML Bin properties. We will need this when setting up the TwiML App.
  2. Set the TwiML recording that is played back by the IVR to run for 15-30 seconds.

3. Create a TwiML App

Time to create our TwiML App. This is what will give us the Application SID that qualityRTC requires in the case of a Twilio integration.

  1. In the Twilio dashboard, go to Programmable Voice | TwiML | TwiML Apps to create the TwiML App. Click the red plus button to create a new TwiML App.

  2. Give it a name and paste the Studio Flow’s webhook URL in the Voice REQUEST URL field:

  3. Once created, click back on that TwiML App to see its Application SID:

  4. Copy the Application SID – you will need it for the next and final step.

4. Information we need

To setup the custom IVR properly, please send us the following information:

  • Using Auth Token mechanism:
    1. Account SID
    2. Auth Token
    3. Application SID
  • Using API key mechanism:
    1. Account SID
    2. Key SID
    3. Key secret
Note: Once configured, you will be able to modify the Twilio Studio Flow at any point in time.

Was this article helpful?

0 out of 0 found this helpful