0
votes

I'll try to explain my requirement. I have 3 entities:

  • Controller
  • Caller-Recipient (Verified Number)
  • Recipient

The end goal is to have Recipient receive a call from Caller-Recipient as caller-id, but Caller-Recipient should not be the one that initiates it. The Controller will initiate a call between Caller-Recipient and Recipient. Here's how I intend to do it.

  1. The Controller will call the Twilio-Number.
  2. The TwiML will dial Caller-Recipient.
  3. Once Caller-Recipient receives the call, it'll dial Recipient and connect to the same call.
  4. The call between Caller-Recipient and Recipient convenes.

How can I achieve this?

1

1 Answers

1
votes

You can do this using the /Calls Resource, as described below (Make an outbound call to a phone number - code example), initiating the call first to the Caller-Recipient. Once they answer, Twilio will reach out to the URL associated to this API call for TwiML which should return a Dial``Number to the Recipient. You can set the callerId to a Twilio number or Verified Caller ID.

Making Calls

TwiML Dial Verb

TwiML Number Noun

TwiML for Programmable Voice