Package com.sinch.sdk.domains.voice
Interface CallsService
public interface CallsService
Using the Calls service, you can manage on-going calls or retrieve information about a call.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionYou can retrieve information about an ongoing or completed call using a call ID.void
manageWithCallLeg
(String callId, CallLegType callLeg, SVAMLControl parameters) This method is used to manage ongoing, connected calls.void
update
(String callId, SVAMLControl parameters) This method is used to manage ongoing, connected calls.
-
Method Details
-
get
You can retrieve information about an ongoing or completed call using a call ID. You can find the call ID of an ongoing call by viewing the response object from a callout request. You can find the call ID of a completed call by looking at your call logs in your Sinch Dashboard.Note: You can only use this method for calls that terminate to PSTN or SIP networks from an In-app call.
- Parameters:
callId
- The unique identifier of the call. This value is generated by the system- Returns:
- Information about the call
-
update
This method is used to manage ongoing, connected calls. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the Callback API documentation.Note: You can only use this method for calls that terminate to PSTN or SIP networks from an In-app call.
- Parameters:
callId
- The unique identifier of the call. This value is generated by the systemparameters
- Tasks to be used related to this call
-
manageWithCallLeg
This method is used to manage ongoing, connected calls. This method is only used when using the PlayFiles and Say instructions in the request body. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the Callback API documentation.Note: You can only use this method for calls that terminate to PSTN or SIP networks from an In-app call.
- Parameters:
callId
- The unique identifier of the call. This value is generated by the systemparameters
- Tasks to be used related to this call
-