Objective
To dial sequentially (also known as “hunt group” or “find me” dialing) using TwiML inside Twilio Studio, you can use the Run Function or Run TwiML Bin widget to return custom TwiML that dials numbers one after another until someone answers.
Product
Twilio Studio
Environment
legacy Twilio Console
Procedure
How Sequential Dialing Works
- You provide a list of phone numbers.
- The TwiML
<Dial>verb is used with theactionattribute to handle what happens if the call is not answered. - If the first number doesn’t answer, the flow continues and dials the next number, and so on.
- Create a TwiML Bin or Twilio Function
- In your Twilio Console, create a TwiML Bin or a Twilio Function.
- Use the
<Dial>verb with thesequential="true"attribute and list all the numbers you want to dial in order.
- Sample TwiML for Sequential Dialing
<Response>
<Dial sequential="true" timeout="20">
<Number>+15551234567</Number>
<Number>+15557654321</Number>
<Number>+15559876543</Number>
</Dial>
</Response>- This will try each number in order, moving to the next if the previous is not answered.
- You can set the
timeout(in seconds) for how long each number should ring.
-
Integrate with Studio
- In your Studio Flow, use the Run TwiML Bin or Run Function widget right after your trigger.
- Point it to your TwiML Bin or Function containing the above TwiML.