Class CallAutomationAsyncClient
java.lang.Object
com.azure.communication.callautomation.CallAutomationAsyncClient
Asynchronous client that supports calling server operations.
Instantiating a asynchronous CallingServer client
View this for additional ways to construct the client.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionanswerCall(String incomingCallContext, String callbackUrl) Answer an incoming callMono<com.azure.core.http.rest.Response<AnswerCallResult>> answerCallWithResponse(AnswerCallOptions answerCallOptions) Create a call connection request from a source identity to a target identity.connectCall(CallLocator callLocator, String callbackUrl) Create a connect request.Mono<com.azure.core.http.rest.Response<ConnectCallResult>> connectCallWithResponse(ConnectCallOptions connectCallOptions) Create a connect request.createCall(CallInvite targetParticipant, String callbackUrl) Create a call connection request from a source identity to a target identity.Mono<com.azure.core.http.rest.Response<CreateCallResult>> createCallWithResponse(CreateCallOptions createCallOptions) Create a call connection request from a source identity to a target identity.createGroupCall(List<CommunicationIdentifier> targetParticipants, String callbackUrl) Create a call connection request from a source identity to a list of target identity.Mono<com.azure.core.http.rest.Response<CreateCallResult>> createGroupCallWithResponse(CreateGroupCallOptions createGroupCallOptions) Create a group call connection request from a source identity to multiple identities.getCallConnectionAsync(String callConnectionId) Returns an object of CallConnectionAsyncReturns an object of CallRecordingAsyncGet Source Identity that is used for create and answer callredirectCall(String incomingCallContext, CallInvite targetParticipant) Redirect a callredirectCallWithResponse(RedirectCallOptions redirectCallOptions) Redirect a callrejectCall(String incomingCallContext) Reject a callrejectCallWithResponse(RejectCallOptions rejectCallOptions) Reject a call
-
Method Details
-
getSourceIdentity
Get Source Identity that is used for create and answer call- Returns:
CommunicationUserIdentifierrepresent source
-
createCall
Create a call connection request from a source identity to a target identity.- Parameters:
targetParticipant- Call invitee's informationcallbackUrl- The call back url for receiving events.- Returns:
- Result of creating the call.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createGroupCall
public Mono<CreateCallResult> createGroupCall(List<CommunicationIdentifier> targetParticipants, String callbackUrl) Create a call connection request from a source identity to a list of target identity.- Parameters:
targetParticipants- The list of targetParticipants.callbackUrl- The call back url for receiving events.- Returns:
- Result of creating the call.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createCallWithResponse
public Mono<com.azure.core.http.rest.Response<CreateCallResult>> createCallWithResponse(CreateCallOptions createCallOptions) Create a call connection request from a source identity to a target identity.- Parameters:
createCallOptions- Options for creating a new call.- Returns:
- Response with result of creating the call.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createGroupCallWithResponse
public Mono<com.azure.core.http.rest.Response<CreateCallResult>> createGroupCallWithResponse(CreateGroupCallOptions createGroupCallOptions) Create a group call connection request from a source identity to multiple identities.- Parameters:
createGroupCallOptions- Options for creating a new group call.- Returns:
- Response with result of creating the call.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
answerCall
Answer an incoming call- Parameters:
incomingCallContext- The incoming call context.callbackUrl- The call back url.- Returns:
- Result of answering the call.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
answerCallWithResponse
public Mono<com.azure.core.http.rest.Response<AnswerCallResult>> answerCallWithResponse(AnswerCallOptions answerCallOptions) Create a call connection request from a source identity to a target identity.- Parameters:
answerCallOptions- The options of answering the call.- Returns:
- Response with result of answering the call.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redirectCall
Redirect a call- Parameters:
incomingCallContext- The incoming call context.targetParticipant-CallInviterepresent redirect targetParticipant- Returns:
- Void
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
redirectCallWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> redirectCallWithResponse(RedirectCallOptions redirectCallOptions) Redirect a call- Parameters:
redirectCallOptions- Options for redirecting a call.- Returns:
- Response with Void.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
rejectCall
Reject a call- Parameters:
incomingCallContext- The incoming call context.- Returns:
- Void
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
rejectCallWithResponse
public Mono<com.azure.core.http.rest.Response<Void>> rejectCallWithResponse(RejectCallOptions rejectCallOptions) Reject a call- Parameters:
rejectCallOptions- the options of rejecting the call- Returns:
- Response with Void.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
connectCall
Create a connect request.- Parameters:
callLocator- Call locator.callbackUrl- The call back url.- Returns:
- Result of connect request.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
connectCallWithResponse
public Mono<com.azure.core.http.rest.Response<ConnectCallResult>> connectCallWithResponse(ConnectCallOptions connectCallOptions) Create a connect request.- Parameters:
connectCallOptions- Options for connect request.- Returns:
- Response with result of connect.
- Throws:
com.azure.core.exception.HttpResponseException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getCallConnectionAsync
Returns an object of CallConnectionAsync- Parameters:
callConnectionId- the id of the call connection- Returns:
- a CallContentAsync.
-
getCallRecordingAsync
Returns an object of CallRecordingAsync- Returns:
- a CallRecordingAsync.
-