import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')

response = client.calls.send_digits(
    call_uuid='eba53b9e-8fbd-45c1-9444-696d2172fbc8',
    digits='123', )
print(response)
{
  "message": "digits sent",
  "api_id": "07abfd94-58c0-11e1-86da-adf28403fe48"
}

This endpoint lets you send DTMF digits on an active call.

API Endpoint

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

Arguments

ParameterTypeRequiredDescription
digitsstringYesSet of digits that need to be sent over the call.
legstringNoThe leg of the call in which the DTMF should be sent. Possible values: aleg (the current call), bleg (the other party in the call).
Default: aleg

Returns

Returns the acknowledgement that the DTMF is sent.

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')

response = client.calls.send_digits(
    call_uuid='eba53b9e-8fbd-45c1-9444-696d2172fbc8',
    digits='123', )
print(response)
{
  "message": "digits sent",
  "api_id": "07abfd94-58c0-11e1-86da-adf28403fe48"
}