I'm currently making a successful outbound call, with sendDigits
already specified. I want to, some time later, during my call, be able to send more digits. Is this possible, perhaps with twiml? Note: I don't want to dial another number, simply enter digits, or other keypad options.
We don't necessarily want to do this at a specific time, but rather, enough time after the initial send digits are sent and processed. If we could add a time delay before sending additional digits, that is perfect. We tried adding random digits between the original send digits, and the extra stuff we want to send, but this didn't seem to work.
Twilio developer evangelist here.
You can add pauses to the digits you send using the w
character. Each w
is a half second pause. So if you send "1234wwwwwwwwww5678" then Twilio will pause for 5 seconds between "1234" and "5678".
Alternatively, you can also play digits down the phone using the TwiML <Play>
element. You can send digits with the digits
attribute like this:
<Response>
<Play digits="1234wwwwwwwwww5678"></Play>
</Response>
Let me know if that helps at all.