CallAutomationClient Class
- java.
lang. Object - com.
azure. communication. callautomation. CallAutomationClient
- com.
public final class CallAutomationClient
Synchronous client that supports calling server operations.
Instantiating a synchronous Calling Server Client
View CallAutomationClientBuilder for additional ways to construct the client.
Method Summary
Methods inherited from java.lang.Object
Method Details
answerCall
public AnswerCallResult answerCall(String incomingCallContext, String callbackUrl)
Answer an incoming call
Parameters:
Returns:
answerCallWithResponse
public Response<AnswerCallResult> answerCallWithResponse(AnswerCallOptions answerCallOptions, Context context)
Create a call connection request from a source identity to a target identity.
Parameters:
Returns:
connectCall
public ConnectCallResult connectCall(CallLocator callLocator, String callbackUrl)
Create a connect request
Parameters:
Returns:
connectCallWithResponse
public Response<ConnectCallResult> connectCallWithResponse(ConnectCallOptions connectCallOptions, Context context)
Create a connect request.
Parameters:
Returns:
createCall
public CreateCallResult createCall(CallInvite targetParticipant, String callbackUrl)
Create a call connection request from a source identity to a target identity.
Parameters:
Returns:
createCallWithResponse
public Response<CreateCallResult> createCallWithResponse(CreateCallOptions createCallOptions, Context context)
Create a call connection request from a source identity to a target identity.
Parameters:
Returns:
createGroupCall
public CreateCallResult createGroupCall(List<CommunicationIdentifier> targetParticipants, String callbackUrl)
Create a call connection request from a source identity to a list of target identity.
Parameters:
Returns:
createGroupCallWithResponse
public Response<CreateCallResult> createGroupCallWithResponse(CreateGroupCallOptions createGroupCallOptions, Context context)
Create a group call connection request from a source identity to multiple identities.
Parameters:
Returns:
getCallConnection
public CallConnection getCallConnection(String callConnectionId)
Returns an object of CallConnection
Parameters:
Returns:
getCallRecording
public CallRecording getCallRecording()
Returns an object of CallRecording
Returns:
getSourceIdentity
public CommunicationUserIdentifier getSourceIdentity()
Get Source Identity that is used for create and answer call
Returns:
redirectCall
public void redirectCall(String incomingCallContext, CallInvite targetParticipant)
Redirect a call
Parameters:
redirectCallWithResponse
public Response<Void> redirectCallWithResponse(RedirectCallOptions redirectCallOptions, Context context)
Redirect a call
Parameters:
Returns:
rejectCall
public void rejectCall(String incomingCallContext)
Reject a call
Parameters:
rejectCallWithResponse
public Response<Void> rejectCallWithResponse(RejectCallOptions rejectCallOptions, Context context)
Reject a call
Parameters:
Returns: