send_digits
Send digit presses as DTMF tones.
Name | Type | Default | Description |
---|---|---|---|
send_digits Required | object | - | An object that accepts the send_digits parameters . |
send_digits Parameters
Name | Type | Default | Description |
---|---|---|---|
digits Required | string | - | The digits to send. Valid values are 0123456789*#ABCDWw . Character W is a 1 second delay, and w is a 500 ms delay. |
Variables
Set by the method:
- send_digits_result: (out)
success
|failed
Examples
Send digits
- YAML
- JSON
version: 1.0.0
sections:
main:
- answer: {}
- send_digits:
digits: '012345'
- play:
url: 'say: %{send_digits_result}'
{
"version": "1.0.0",
"sections": {
"main": [
{
"answer": {}
},
{
"send_digits": {
"digits": "012345"
}
},
{
"play": {
"url": "say: %{send_digits_result}"
}
}
]
}
}