GetDigits
GetDigitsAction collects DTMF from the caller, optionally with a nested `<Say>` / `<Play>` prompt. Mirrors the PBX `<GetDigits>` verb.
GetDigitsAction collects DTMF from the caller, optionally with a nested <Say> / <Play> prompt. Mirrors the PBX <GetDigits> verb.
| Parameter | Type | JSON key | Required | Description |
|---|---|---|---|---|
Timeout | int | timeout | No | Timeout is the number of seconds to wait for input after the prompt finishes. Defaults to PBX default. |
NumDigits | int | numDigits | No | NumDigits limits input to exactly this many digits. 0 means unlimited. |
FinishOnKey | string | finishOnKey | No | FinishOnKey is the DTMF key that submits input early. Defaults to "#". |
Nested | []VoiceAction | nested | No | Nested verbs played while waiting for input (Say, Play). |
{"actions":[{"getDigits":{}}]}<GetDigits maxDigits="1" timeout="5" finishOnKey="#"><Say>Press 1 to confirm, 2 to cancel.</Say></GetDigits>