DTMF

The following API is used to send DTMF tones to a call.

  BaseURI:https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/DTMF

Send digits to a call.

  URI: <BaseURI>/
  Method: POST

Parameters

The following parameters are required to send DTMF tones to a call:

Required Parameters
Parameter Description
digits Digits to be sent.
Optional Parameters
Parameter Description
leg The leg to be used, can be aleg (the current call) or bleg (the other party in a Dial). Defaults to aleg.

Response

HTTP Status: 202

JSON:
{
  "message": "digits sent",
  "api_id": "07abfd94-58c0-11e1-86da-adf28403fe48"
}

Asynchronous Mode

All Plivo APIs can be invoked in asynchronous mode with the inclusion of the callback_url parameter. Note: In asynchronous mode, you will only get back a response with the api_id. The response is sent to the callback_url which is fired immediately after execution of the Plivo API. See API Request and API Response for more information.

Asynchronous Parameters
Parameter Description
callback_url The URL that is notified by the API when the response is available and to which the response is sent.
callback_method The method used to notify the callback_url URL. Defaults to POST.
Asynchronous Response

The Asynchronous Response is sent in json format in the response field.

See the API Response section for more information.