Class CustomEvents
java.lang.Object
com.sinch.sdk.domains.voice.models.v2.helpers.CustomEvents
Helpers to build the custom event SVAML command
- Since:
- 2.4
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomEventCommandSend a mid-call event to the application backend, which answers with the commands that control the rest of the callstatic CustomEventCommandSend a mid-call event to the application backend, with a fallback URL
-
Method Details
-
trigger
Send a mid-call event to the application backend, which answers with the commands that control the rest of the callThe sequence waits for the backend answer before running the next command.
The backend receives a
call.webhook.<name>event. Once parsed by the SDK, its type iscall.customEvent.<name>.- Parameters:
name- Name of the custom event, sent aswebhookNameurl- URL the event is sent to- Returns:
- The
customEventcommand - Since:
- 2.4
-
trigger
Send a mid-call event to the application backend, with a fallback URL- Parameters:
name- Name of the custom event, sent aswebhookNameurl- URL the event is sent tofallbackUrl- URL a failed request is sent to- Returns:
- The
customEventcommand - Since:
- 2.4
- See Also:
-