Class CustomEvents

java.lang.Object
com.sinch.sdk.domains.voice.models.v2.helpers.CustomEvents

public final class CustomEvents extends Object
Helpers to build the custom event SVAML command
Since:
2.4
  • Method Details

    • trigger

      public static CustomEventCommand trigger(String name, String url)
      Send a mid-call event to the application backend, which answers with the commands that control the rest of the call

      The 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 is call.customEvent.<name>.

      Parameters:
      name - Name of the custom event, sent as webhookName
      url - URL the event is sent to
      Returns:
      The customEvent command
      Since:
      2.4
    • trigger

      public static CustomEventCommand trigger(String name, String url, String fallbackUrl)
      Send a mid-call event to the application backend, with a fallback URL
      Parameters:
      name - Name of the custom event, sent as webhookName
      url - URL the event is sent to
      fallbackUrl - URL a failed request is sent to
      Returns:
      The customEvent command
      Since:
      2.4
      See Also: