{
  "message": "call fired",
  "request_uuid": "9834029e-58b6-11e1-b8b7-a5bd0e4e126f",
  "api_id": "97ceeb52-58b6-11e1-86da-77300b68f8bb"
}

You can take action on detecting an answering machine during a call by setting the machine_detection_url parameter when firing an outbound call API. Plivo will detect an answering machine in the background and invoke the machine_detection_url with these parameters.

Parameters sent to machine_detection_url

ParameterTypeDescription
FromstringThe from number used to initiate the call.
MachinebooleanSet to true if a machine is detected.
TostringThe destination of the call.
RequestUUIDstringAn identifier that can uniquely identify a call.
ALegRequestUUIDstringIdentifies the first leg of the call in case there are multiple legs.
CallUUIDstringThe identifier used to identify the call.
IfMachinestringThis parameter can be either continue or hangup depending on the machine_detection parameter set while initiating the call.
DirectionstringThe direction of the call. This will be "outbound" since we support machine detection only on outbound calls.
ALegUUIDstringA unique identifier for the A leg of the call.
EventstringThe event that triggered this notification. This will have the value "MachineDetection".
CallStatusstringThe status of the call. This will have the value "in-progress".

Returns

If successful, this endpoint returns a unique identifier that can be used to identify the call.

{
  "message": "call fired",
  "request_uuid": "9834029e-58b6-11e1-b8b7-a5bd0e4e126f",
  "api_id": "97ceeb52-58b6-11e1-86da-77300b68f8bb"
}