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,
Prerequisites
Sign up for a free PIOPIY demo account.
Create your endpoint and add capacity.
Buy PIOPIY phone number.
Setup your webserver and map your POST method URL in answer URL.
Input action JSON
[{"action": "input","max_digit": 4,"timeout": 5,"action_url": "https://test.com/dtmf"}]
Properties
Property | Type | Description |
---|---|---|
*action | string | The PCMO action to control the flow of the call. |
max_digit | number | It defines the DTMF input length. By default the maximum digit is 1 |
timeout | number | The seconds to wait, to get the DTMF. By default the timeout is 5 seconds. |
*action_url | string | Your webserver URL to inform the DTMf input |
Note
The * marked property is mandatory.
Sample JSON Response
If the provided information is valid, your web server will get a sample response from PIOPIY Platform as given below
{"from": 919100000000,"to": 4471000000,"dtmf": "1234","cmuuid": "41aa4bb1-d693-415e-82ce-bdf2e8814aeb"}
Properties
These are the list of properties and its description
Property | Type | Description |
---|---|---|
from | number | The number the call came from |
to | number | Your PIOPIY phone number |
dtmf | string | The digits entered during the call |
cmiuuid | string | A unique identifier of this call |