10

The Twilio markup language clearly defines how INCOMING calls can be joined to a common conference room.

But I want to dial several calls simultaneously and join those. If I use the "dial" verb within the markup language, I get several consecutive calls, but I'd like them in parallel.

The basic operation of my application is to receive a call from the conference leader and actively connect all parties to the conference.

user3167195
  • 101
  • 1
  • 3

1 Answers1

4

Twilio Developer Evangelist here.

This is very easy to achieve using the REST API instead of using the TwiML verb dial to call each attendee. First of all, you put the conference leader into the conference room:

<Response>
  <Dial>
    <Conference>my room</Conference>
  </Dial>
<Response>

(Note that you may want hold music, or other instructions etc..)

Next, you use the REST API and dial in the other participants. There is a quick start to help you get going with outbound calls, this one is in PHP but you can use the language switcher on the page for whatever your need. Then you can just use the URL for the above TwiML to connect those calls to the same conference room. You can also use other TwiML documents, the important factor here is that Conference room name matches. Then everyone will be on the same call.

Helper libraries are available in Ruby, PHP, Python, C#, Java and Node to help you with the REST API.

Hope this help!

Devin Rader
  • 10,260
  • 1
  • 20
  • 32
xmjw
  • 3,154
  • 21
  • 29
  • How can you connect an outbound call to a conference? – Shamoon Aug 08 '19 at 18:43
  • 1
    I'm not sure to completely understand. Imagine I want a conference call with 2 phones (say `to_number` and `second_to_number`). Do I need to make two "voice call": A first one connecting `twilio_number` to `to_number` and a second one connecting `twilio_number` to `second_to_number`? That's not really clear in the documentation for [conference calls either](https://www.twilio.com/docs/voice/tutorials/how-to-create-conference-calls-python). – cglacet Jun 18 '20 at 10:10
  • Waaaaaay too late to help, but yes. Last time I looked (forever ago!) you make two outbound calls and conference them into the same room. Exactly as you describe. – xmjw Mar 21 '21 at 20:04