Interface CallsService
public interface CallsService
Calls Service
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve call details by call IDvoidinteractByCallId(String callId, CallPatchRequest callPatchRequest) Patch an ongoing call by call IDvoidinteractByCallName(String sessionId, String callName, CallPatchRequest callPatchRequest) Patch an ongoing call by session ID and call namelist()List calls made with Sinch Voice APIlist(ListCallsQueryParameters queryParameter) List calls made with Sinch Voice APIstart(StartCallQueryParameters queryParameter, StartCallRequest startCallRequest) Create and initiate a new outbound call sessionstart(StartCallRequest startCallRequest) Create and initiate a new outbound call session, associated to the project's default service
-
Method Details
-
start
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 sessionCreate 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
Retrieve call details by call IDRetrieve 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 APIList 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 APIList and filter calls made with Sinch
- Parameters:
queryParameter- (optional)- Returns:
- CallsListResponse
- Throws:
ApiException- if fails to make API call- Since:
- 2.3
-
interactByCallId
Patch an ongoing call by call IDInteract 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 nameInteract 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 thecallNameproperty in thedialcommand. (required)callPatchRequest- The SVAML commands to apply to the call (required)- Throws:
ApiException- if fails to make API call- Since:
- 2.3
-