Interface CallsService


public interface CallsService
Calls Service
  • Method Details

    • start

      StartCallResponse start(StartCallRequest startCallRequest) throws ApiException
      Create and initiate a new outbound call session, associated to the project's default service
      Parameters:
      startCallRequest - The call to start (required)
      Returns:
      StartCallResponse
      Throws:
      ApiException - if fails to make API call
      Since:
      2.3
    • start

      StartCallResponse start(StartCallQueryParameters queryParameter, StartCallRequest startCallRequest) throws ApiException
      Create and initiate a new outbound call session

      Create a new outbound call session associated to the project's default service or to the service specified by StartCallQueryParameters.getServiceId().

      Parameters:
      queryParameter - (optional)
      startCallRequest - The call to start (required)
      Returns:
      StartCallResponse
      Throws:
      ApiException - if fails to make API call
      Since:
      2.3
    • get

      Call get(String callId) throws ApiException
      Retrieve call details by call ID

      Retrieve detailed information about a specific call using its unique identifier.

      Parameters:
      callId - The ID of the call. (required)
      Returns:
      Call
      Throws:
      ApiException - if fails to make API call
      Since:
      2.3
    • list

      List calls made with Sinch Voice API

      List and filter calls made with Sinch

      Returns:
      CallsListResponse
      Throws:
      ApiException - if fails to make API call
      Since:
      2.3
    • list

      List calls made with Sinch Voice API

      List and filter calls made with Sinch

      Parameters:
      queryParameter - (optional)
      Returns:
      CallsListResponse
      Throws:
      ApiException - if fails to make API call
      Since:
      2.3
    • interactByCallId

      void interactByCallId(String callId, CallPatchRequest callPatchRequest) throws ApiException
      Patch an ongoing call by call ID

      Interact with an ongoing call by submitting a set of SVAML commands. Use this to force disconnect, play messages, bridge with another call, or perform other call control actions.

      Parameters:
      callId - The ID of the call. (required)
      callPatchRequest - The SVAML commands to apply to the call (required)
      Throws:
      ApiException - if fails to make API call
      Since:
      2.3
    • interactByCallName

      void interactByCallName(String sessionId, String callName, CallPatchRequest callPatchRequest) throws ApiException
      Patch an ongoing call by session ID and call name

      Interact with an ongoing call identified by its session and call name by submitting a set of SVAML commands. Use this to force disconnect, play messages, bridge with another call, or perform other call control actions.

      Parameters:
      sessionId - The ID of the session. (required)
      callName - The name of the call leg within the session, as assigned by the callName property in the dial command. (required)
      callPatchRequest - The SVAML commands to apply to the call (required)
      Throws:
      ApiException - if fails to make API call
      Since:
      2.3