twiliotwilio-twimltwilio-studio

Ringing multiple phones or apps with Twilio


I have a Twilio number

I know Twilio is very powerful, but also complex. I try to find out how I can achieve one of the following scenarios:

  1. All phones should ring simultanously
  2. If one phone is picked up
  3. Other phones should stop ringing

I am quite sure, that this could be done. But I do not know how?

It is not important, which Tools used (Studio, Functions, TwiML, Google Code, or a mix of these...)

First I thought I can do this completely in Studio. I know I can ring multiple PSTN phones together, but how can I solve that with different types of phones.

Can someone please point mein the right direction? Maybe there is some "tutorial" or example code, I did not found


Solution

  • I'm not sure if Studio can handle making calls simultaneously to SIP and regular phones, but you can definitely achieve this with TwiML.

    To ring more than one phone at a time, you use the <Dial> verb and nest the endpoints that you want to dial within. For dialling a regular phone you can use <Number> and for dialling a SIP phone you can use <Sip>.

    <Response>
      <Dial>
        <Number>YOUR_MOBILE_PHONE_NUMBER</Number>
        <Sip>sip:username@exampl.com</Sip>
      </Dial>
    </Response>
    

    The documentation for parallel calling with Sip does note that:

    In order to use the SIP Parallel Calling Twilio feature, you must enable the "Enhanced Programmable SIP Features" in your Voice settings in the Console.