SendDigits allows you to send DTMFs to a call.

SendDigits Request URL

To send DTMFs to a call, make an HTTP POST to the below URL with the required parameters:

http://{BASEURL}/{ApiVersion}/SendDigits/

POST Parameters

Required Parameters

You must POST the following parameters:

Parameter Description
CallUUID A unique identifier of the call earlier returned by Plivo to which the action should be applied.
Digits The Digits parameter is the DTMF string to send.
To wait before sending DTMF to the extension, you can add leading ‘w’ or ‘W’ characters.
E.g. wwww2410
Each ‘w’ character waits 0.5 seconds instead of sending a digit.
Each ‘W’ character waits 0.5 seconds instead of sending a digit.
You can also add the tone duration in ms by appending @duration after string (default duration is 2000 ms).
E.g. 1w2w3@1000
Optional Parameters

You can POST the following parameters:

Parameter Description
Leg ‘aleg’, ‘bleg’. On which leg(s) to play something.
‘aleg’ means only play on the Call.
‘bleg’ means only play on the bridged leg of the Call.
Default is ‘aleg’ .

Response Parameters

When you initiate a RESTAPI, Plivo responds with the standard parameters as mentioned here. No additional parameters are sent.

Leave a Reply