Forwarding an incoming call to multiple numbers using call screening without circular processing

Background

I am trying to screen calls for my twilio application, i.e. a person presses a key to accept a call. I saw several examples of this in action (for example, How to use twilio to provide a live reply or voicemail? ), However, these responses in case of forwarding calls to several numbers use the round robin method.

Question

Is there a way that everyone calls at the same time, and the first person who goes through the call says, and all the other calls are disconnected?

Why?

I would like to do this because the incoming caller will have to potentially wait long enough if only the last person in a circle answers the call.

+4
source share
2 answers

The Twilight Evangelist is here,

When you receive your initial call (call his customer), ask them to get some information using <Gather>, or play them while holding the music, whatever you think best:

<Response>
  <Play loop="0">/my_music.mp3</Play>
</Response>

Then use the REST API to initiate 3 outgoing calls to what we will call agents. You must remember the Twilio speed limit . Each of these calls would have TwiML in the following lines:

<Response>
   <Gather numDigits="1" action="/accepted">
     <Say>Incoming call from +X YYY ZZZZ ZZZZ</Say>
   </Gather
<Response>

, (, , ..), URL action. :

<Response>
  <Dial>
    <Conference>some-unique-room-name</Conference>
  </Dial>
</Response>

API REST (, , ) TwiML -, .

- , URL /accepted, , , .

, . , <Queue> TwiML .

, "" url <Number>. TwiML, . <Number>, .

<Response>
  <Dial>
    <Number url="/whisper">+AGENTNUMBER</Number>
  </Dial>
</Response>

/whisper TwiML <Gather>, . TwimL, . <Hangup> .

Python. , Python, , TwiML ?

!

+9

TwiML:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Dial>
    <Number>415-123-4567</Number>
    <Number>415-321-7654</Number>
    <Number>415-456-7890</Number>
  </Dial>
</Response>

, .

+3

All Articles