Twilio: pro-actively initiate daily, pre-scheduled conference calls?

107 views Asked by At

Scenario is this (I think #2 below is the key question/unknown):

  1. User1 & User2 have provided a mutual daily scheduled time (and their phone numbers of course) for when they want to initiate a phone call between each other.
  2. Twilio calls User1 & User2 to initiate the daily conference call each day at the designated time
  3. Conference call is initiated once both parties pick up.
  4. Conference call ends after either hangs up.
  5. FYI: conference call is only a maximum of 5 minutes.

Thanks!

1

There are 1 answers

3
Andrew Tork Baker On

Twilio developer here.

You can definitely build outbound conference calls like this with Twilio.

Building an application like this is a two step process:

First, you need to initiate an outbound call to each participant using the Twilio REST API. This page in our documentation has instructions and code samples for most popular programming languages:

https://www.twilio.com/docs/api/rest/making-calls

When you make that outbound call, you will need to supply a url parameter in your POST request to https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls.

That URL should point to a part of your application that responds with TwiML, Twilio's markup language. The TwiML you need is pretty simple:

<Response>
  <Dial>
    <Conference>Daily call</Conference>
  </Dial>
</Response>

You can find more sample TwiML responses for conference calls in our official docs:

https://www.twilio.com/docs/api/twiml/conference#examples

I hope that helps!