amd property in a dial verb.
In this example, the Answering Machine Detection feature is activated as soon as the call is answered, and later sends a webhook to amd to determine if a human or a machine has answered the call.
Configuration
The following table lists the available parameters:Events
The payload included in theactionHook always contains a type property describing the event type.
Some event types may include additional properties.
Multiple events can occur during a single call. For example, on a call to an answering machine, the sequence could be:
amd_machine_detectedamd_tone_detectedamd_machine_stopped_speaking
Inbound calls
You can use Answering Machine Detection for incoming calls by adding anamd property in a config verb. It can be useful in situations where Voice Gateway is located behind a dialer. In these cases, the dialer initiates the outbound call and then links it to Voice Gateway via an INVITE request.