Twilio - call forwarding across 2 rings

Can Twilio be used to forward an incoming call to A's phone number (say 416-555-1234) and if A's phone number is busy or doesn't answer after 2 or 3 rings, go to B's phone number?

XML looks like this:

<xml version="1.0" encoding="UTF-8"?>
<Response>
    <Dial>
        <Number>416-555-1234</Number>
    </Dial>
</Response>

      

+3


source to share


1 answer


Here's one of the places where the telephone network gets a little weird. The call you hear is just a recording .. no sync or relationship with anything else. Plus, it starts as soon as the network starts connecting your call, rather than immediately when the physical device on the other end starts ringing. This appears to be called internationally, where you (the caller) could hear 10 rings, but the receiver only has a rung once or twice.

In any case, the strategy for this is not at all difficult. What you are looking for is the timeout parameter in the set verb: http://www.twilio.com/docs/api/twiml/dial#attributes-timeout



When the timer expires, it jumps to the specified TwiML. The default is 30 seconds, but I found 15-20 to be a pretty good range for quicker response.

(Disclosure: A Twilio employee is here.)

+3


source







All Articles