Skip to main content

Collecting Input

The input action will collect the digits from the caller or callee on a live call. when the digits are collected, you can make the call jump to the next action also. Collecting the digits will be useful to create multi-level IVR, confirming the order, etc.

Input action JSON

[
{
action: "input",
max_digit: 4,
timeout: 5,
action_url: "https://test.com/dtmf",
}
]

Parameters type and description

ParameterTypeDescription
*actionstringThe PCMO action to control the flow of the call.
max_digitnumberIt defines the DTMF input length. By default the maximum digit is 1
timeoutnumberThe seconds to wait, to get the DTMF. By default the timeout is 5 seconds.
*action_urlstringYour webserver URL to inform the DTMf input
Note
The * marked property is mandatory.