Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twilio: respond to incoming call by ringing forever

When a Twilio number receives an incoming voice call, what TwiML can I use so that the phone continues ringing indefinitely?

In certain circumstances, I want to pretend that the phone is ringing but there's nobody around to answer it and there's no voicemail configured. I thought the Reject verb could help. It appears to support only a busy signal or a "number disconnected" message.

like image 357
mndrix Avatar asked Mar 14 '14 16:03

mndrix


1 Answers

One can use the Pause verb to have Twilio delay pickup. By specifying a sufficiently long delay, the call effectively rings "forever". For example,

<?xml version="1.0" encoding="UTF-8" ?>
<Response>
    <Pause length="600"/>
    <Hangup />
</Response>
like image 171
mndrix Avatar answered Oct 05 '22 08:10

mndrix