Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add participant fix and style fixes #21967

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ public Mono<PlayAudioResult> playAudio(String callId, PlayAudioRequest request)

return this.callClient.playAudioAsync(callId, convertPlayAudioRequest(request)).flatMap(
(PlayAudioResponse response) -> {
PlayAudioResult playAudioResult = convertPlayAudioResponse(response);
return Mono.just(playAudioResult);
});
PlayAudioResult playAudioResult = convertPlayAudioResponse(response);
return Mono.just(playAudioResult);
});
} catch (RuntimeException ex) {
return monoError(logger, ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static InviteParticipantsRequestInternal convert(com.azure.communication.

InviteParticipantsRequestInternal inviteParticipantsRequest = new InviteParticipantsRequestInternal()
.setParticipants(participants)
.setAlternateCallerId(CommunicationIdentifierConverter.convert(obj.getAlternateCallerId()).getPhoneNumber())
.setAlternateCallerId(obj.getAlternateCallerId() == null ? null : CommunicationIdentifierConverter.convert(obj.getAlternateCallerId()).getPhoneNumber())
.setOperationContext(obj.getOperationContext())
.setCallbackUri(obj.getCallbackUri());
return inviteParticipantsRequest;
Expand Down