Share via


CallAutomationAsyncClient Class

  • java.lang.Object
    • com.azure.communication.callautomation.CallAutomationAsyncClient

public final class CallAutomationAsyncClient

Asynchronous client that supports calling server operations.

Instantiating a asynchronous CallingServer client

View CallAutomationClientBuilder for additional ways to construct the client.

Method Summary

Modifier and Type Method and Description
Mono<AnswerCallResult> answerCall(String incomingCallContext, String callbackUrl)

Answer an incoming call

Mono<Response<AnswerCallResult>> answerCallWithResponse(AnswerCallOptions answerCallOptions)

Create a call connection request from a source identity to a target identity.

Mono<ConnectCallResult> connectCall(CallLocator callLocator, String callbackUrl)

Create a connect request.

Mono<Response<ConnectCallResult>> connectCallWithResponse(ConnectCallOptions connectCallOptions)

Create a connect request.

Mono<CreateCallResult> createCall(CallInvite targetParticipant, String callbackUrl)

Create a call connection request from a source identity to a target identity.

Mono<Response<CreateCallResult>> createCallWithResponse(CreateCallOptions createCallOptions)

Create a call connection request from a source identity to a target identity.

Mono<CreateCallResult> createGroupCall(List<CommunicationIdentifier> targetParticipants, String callbackUrl)

Create a call connection request from a source identity to a list of target identity.

Mono<Response<CreateCallResult>> createGroupCallWithResponse(CreateGroupCallOptions createGroupCallOptions)

Create a group call connection request from a source identity to multiple identities.

CallConnectionAsync getCallConnectionAsync(String callConnectionId)

Returns an object of CallConnectionAsync

CallRecordingAsync getCallRecordingAsync()

Returns an object of CallRecordingAsync

CommunicationUserIdentifier getSourceIdentity()

Get Source Identity that is used for create and answer call

Mono<Void> redirectCall(String incomingCallContext, CallInvite targetParticipant)

Redirect a call

Mono<Response<Void>> redirectCallWithResponse(RedirectCallOptions redirectCallOptions)

Redirect a call

Mono<Void> rejectCall(String incomingCallContext)

Reject a call

Mono<Response<Void>> rejectCallWithResponse(RejectCallOptions rejectCallOptions)

Reject a call

Methods inherited from java.lang.Object

Method Details

answerCall

public Mono<AnswerCallResult> answerCall(String incomingCallContext, String callbackUrl)

Answer an incoming call

Parameters:

incomingCallContext - The incoming call context.
callbackUrl - The call back url.

Returns:

Result of answering the call.

answerCallWithResponse

public Mono<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.

connectCall

public Mono<ConnectCallResult> connectCall(CallLocator callLocator, String callbackUrl)

Create a connect request.

Parameters:

callLocator - Call locator.
callbackUrl - The call back url.

Returns:

Result of connect request.

connectCallWithResponse

public Mono<Response<ConnectCallResult>> connectCallWithResponse(ConnectCallOptions connectCallOptions)

Create a connect request.

Parameters:

connectCallOptions - Options for connect request.

Returns:

Response with result of connect.

createCall

public Mono<CreateCallResult> createCall(CallInvite targetParticipant, String callbackUrl)

Create a call connection request from a source identity to a target identity.

Parameters:

targetParticipant - Call invitee's information
callbackUrl - The call back url for receiving events.

Returns:

Result of creating the call.

createCallWithResponse

public Mono<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.

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.

createGroupCallWithResponse

public Mono<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.

getCallConnectionAsync

public CallConnectionAsync getCallConnectionAsync(String callConnectionId)

Returns an object of CallConnectionAsync

Parameters:

callConnectionId - the id of the call connection

Returns:

a CallContentAsync.

getCallRecordingAsync

public CallRecordingAsync getCallRecordingAsync()

Returns an object of CallRecordingAsync

Returns:

a CallRecordingAsync.

getSourceIdentity

public CommunicationUserIdentifier getSourceIdentity()

Get Source Identity that is used for create and answer call

Returns:

redirectCall

public Mono<Void> redirectCall(String incomingCallContext, CallInvite targetParticipant)

Redirect a call

Parameters:

incomingCallContext - The incoming call context.
targetParticipant - CallInvite represent redirect targetParticipant

Returns:

Void

redirectCallWithResponse

public Mono<Response<Void>> redirectCallWithResponse(RedirectCallOptions redirectCallOptions)

Redirect a call

Parameters:

redirectCallOptions - Options for redirecting a call.

Returns:

Response with Void.

rejectCall

public Mono<Void> rejectCall(String incomingCallContext)

Reject a call

Parameters:

incomingCallContext - The incoming call context.

Returns:

Void

rejectCallWithResponse

public Mono<Response<Void>> rejectCallWithResponse(RejectCallOptions rejectCallOptions)

Reject a call

Parameters:

rejectCallOptions - the options of rejecting the call

Returns:

Response with Void.

Applies to