'How to send digits in twilio call

I want to know how I can make a call, send dials, add pauses between the dials, and record the call.

I need something like this:

Call number: (123)234-3213 SendDigits: "1(pause for 3 seconds)34414(pause for 12 seconds)9492#(pause for 5 seconds)" Record: True

I look at their documentation for some hours and still can't figure it out. Also I've been having some problems with getting twilio to record the full conversation. It only records like 1 second of it. If someone could show me how they would do this in their respective programming languages I would really appreciate it.



Solution 1:[1]

Twilio evangelist here. You can use the <Play> verb to play DTMF tones as well as 1/2 second waits:

<?xml version="1.0" encoding="UTF-8" ?>
<Response>
    <Play digits="wwww3"></Play>
</Response>

You can use the <Pause> verb to tell Twilio to pause processing TwiML for a specified number of seconds:

<?xml version="1.0" encoding="UTF-8" ?>
<Response>
    <Pause length="5"/>
    <Say>Hi there.</Say>
</Response>

You can use the <Record> verb to have Twilio start recording the call:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Record timeout="10" transcribe="true" />
</Response>

Hope that helps.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Devin Rader