Package com.vonage.client.voice
Class AdvancedMachineDetection
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.AdvancedMachineDetection
- All Implemented Interfaces:
Jsonable
Configure the behavior of Vonage's advanced machine detection. See
the documentation for details.
- Since:
- 7.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for specifying the Advanced Machine Detection properties.static enumRepresents the beep detection mode. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Entry point for constructing an instance of this class.Maximum time in seconds Vonage should wait for a machine beep to be detected.Defines how the system responds when a machine is detected.getMode()Detect if machine answered and sends a human or machine status in the webhook payload.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Method Details
-
getBehavior
Defines how the system responds when a machine is detected. WhenMachineDetection.HANGUPis used, the call will be terminated if a machine is detected. WhenMachineDetection.CONTINUEis used, the call will continue even if a machine is detected.- Returns:
- The machine detection behaviour as an enum.
-
getMode
Detect if machine answered and sends a human or machine status in the webhook payload. When set toAdvancedMachineDetection.Mode.DETECT_BEEP, the system also attempts to detect voice mail beep and sends an additional parametersub_statein the webhook with the valuebeep_start.- Returns:
- The machine detection mode.
-
getBeepTimeout
Maximum time in seconds Vonage should wait for a machine beep to be detected. A machine event withsub_stateset tobeep_timeoutwill be sent if the timeout is exceeded.- Returns:
- The maximum wait time in seconds for machine detection, or
nullif unset.
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new builder.
-