Skip to content

Commit ff4cf71

Browse files
authored
[Communication] - CallingServer - Update SDK docs. (#22550)
* Update SDK docs. * Update package-Infos. * More Nit fix for api doc. * Update README.md. * Fix broken links in README.md. * Bump up callingserver and its dependency version. * Update changeLog file. * Bump up common project version.
1 parent 7de6e06 commit ff4cf71

File tree

23 files changed

+217
-201
lines changed

23 files changed

+217
-201
lines changed

eng/jacoco-test-coverage/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<dependency>
6565
<groupId>com.azure</groupId>
6666
<artifactId>azure-communication-common</artifactId>
67-
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
67+
<version>1.0.3</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
6868
</dependency>
6969
<dependency>
7070
<groupId>com.azure</groupId>
@@ -84,7 +84,7 @@
8484
<dependency>
8585
<groupId>com.azure</groupId>
8686
<artifactId>azure-communication-callingserver</artifactId>
87-
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-callingserver;current} -->
87+
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure:azure-communication-callingserver;current} -->
8888
</dependency>
8989
<dependency>
9090
<groupId>com.azure</groupId>

eng/versioning/version_client.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ com.azure:azure-analytics-synapse-spark;1.0.0-beta.3;1.0.0-beta.4
5252
com.azure:azure-analytics-synapse-managedprivateendpoints;1.0.0-beta.3;1.0.0-beta.4
5353
com.azure:azure-analytics-synapse-monitoring;1.0.0-beta.3;1.0.0-beta.4
5454
com.azure:azure-communication-chat;1.0.0;1.1.0-beta.1
55-
com.azure:azure-communication-callingserver;1.0.0-beta.1;1.0.0-beta.1
56-
com.azure:azure-communication-common;1.0.2;1.1.0-beta.1
55+
com.azure:azure-communication-callingserver;1.0.0-beta.2;1.0.0-beta.2
56+
com.azure:azure-communication-common;1.0.2;1.0.3
5757
com.azure:azure-communication-sms;1.0.3;1.1.0-beta.1
5858
com.azure:azure-communication-identity;1.1.1;1.2.0-beta.1
5959
com.azure:azure-communication-phonenumbers;1.0.3;1.1.0-beta.1

sdk/communication/azure-communication-callingserver/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.0.0-beta.2 (2021-06-25)
4+
- Updated sdk and apis documentation.
5+
6+
### Bug Fixes
7+
- Fixed bug with AddParticipant api.
8+
39
## 1.0.0-beta.1 (2021-06-24)
410
This is the first release of Azure Communication Service Calling Server. For more information, please see the [README][read_me].
511

sdk/communication/azure-communication-callingserver/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This package contains a Java SDK for Azure Communication CallingServer Service.
2121
<dependency>
2222
<groupId>com.azure</groupId>
2323
<artifactId>azure-communication-callingserver</artifactId>
24-
<version>1.0.0-beta.1</version>
24+
<version>1.0.0-beta.2</version>
2525
</dependency>
2626
```
2727
[//]: # ({x-version-update-end})
@@ -173,7 +173,9 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
173173

174174
## Next steps
175175

176-
Check out other client libraries for Azure Communication Services
176+
- [Read more about CallingServer Call Automation in Azure Communication Services][call_automation_apis_overview]
177+
- [Read more about CallingServer Call Recording in Azure Communication Services][call_recording_overview]
178+
- For a basic guide on how to record and download calls with Event Grid please refer to the [Record and download calls with Event Grid][record_and_download_calls_with_event_grid].
177179

178180
<!-- LINKS -->
179181
[cla]: https://cla.microsoft.com
@@ -183,4 +185,7 @@ Check out other client libraries for Azure Communication Services
183185
[product_docs]: https://docs.microsoft.com/azure/communication-services/
184186
[package]: https://search.maven.org/artifact/com.azure/azure-communication-callingserver
185187
[api_documentation]: https://aka.ms/java-docs
188+
[call_automation_apis_overview]:https://docs.microsoft.com/azure/communication-services/concepts/voice-video-calling/call-automation-apis
189+
[call_recording_overview]:https://docs.microsoft.com/azure/communication-services/concepts/voice-video-calling/call-recording
190+
[record_and_download_calls_with_event_grid]:https://docs.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/download-recording-file-sample
186191
[source]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/communication/azure-communication-callingserver/src

sdk/communication/azure-communication-callingserver/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<groupId>com.azure</groupId>
1616
<artifactId>azure-communication-callingserver</artifactId>
1717
<packaging>jar</packaging>
18-
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-callingserver;current} -->
18+
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure:azure-communication-callingserver;current} -->
1919

2020
<name>Microsoft Azure client library for CallingServer service</name>
2121
<description>
@@ -54,7 +54,7 @@
5454
<dependency>
5555
<groupId>com.azure</groupId>
5656
<artifactId>azure-communication-common</artifactId>
57-
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
57+
<version>1.0.3</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
5858
</dependency>
5959
<dependency>
6060
<groupId>com.azure</groupId>

sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/CallConnection.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import com.azure.core.util.logging.ClientLogger;
1717

1818
/**
19-
* Sync Client that supports call connection operations.
19+
* Synchronous Client that supports call connection operations.
2020
*/
2121
public final class CallConnection {
2222
private final CallConnectionAsync callConnectionAsync;
@@ -27,16 +27,16 @@ public final class CallConnection {
2727
}
2828

2929
/**
30-
* Get the call connection id property
30+
* Get the call connection id property.
3131
*
32-
* @return the id value.
32+
* @return Call connection id value.
3333
*/
3434
public String getCallConnectionId() {
3535
return callConnectionAsync.getCallConnectionId();
3636
}
3737

3838
/**
39-
* Play audio in a call.
39+
* Play audio in the call.
4040
*
4141
* @param audioFileUri The media resource uri of the play audio request. Currently only Wave file (.wav) format
4242
* audio prompts are supported. More specifically, the audio content in the wave file must
@@ -48,7 +48,7 @@ public String getCallConnectionId() {
4848
* communications related to this operation
4949
* @throws CallingServerErrorException thrown if the request is rejected by server.
5050
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
51-
* @return the response payload for play audio operation.
51+
* @return Response payload for play audio operation.
5252
*/
5353
@ServiceMethod(returns = ReturnType.SINGLE)
5454
public PlayAudioResult playAudio(
@@ -62,23 +62,23 @@ public PlayAudioResult playAudio(
6262
}
6363

6464
/**
65-
* Play audio in a call.
65+
* Play audio in the call.
6666
*
6767
* @param audioFileUri The media resource uri of the play audio request. Currently only Wave file (.wav) format
6868
* audio prompts are supported. More specifically, the audio content in the wave file must
6969
* be mono (single-channel), 16-bit samples with a 16,000 (16KHz) sampling rate.
7070
* @param playAudioOptions Options for play audio.
7171
* @throws CallingServerErrorException thrown if the request is rejected by server.
7272
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
73-
* @return the response payload for play audio operation.
73+
* @return Response payload for play audio operation.
7474
*/
7575
@ServiceMethod(returns = ReturnType.SINGLE)
7676
public PlayAudioResult playAudio(String audioFileUri, PlayAudioOptions playAudioOptions) {
7777
return callConnectionAsync.playAudioInternal(audioFileUri, playAudioOptions).block();
7878
}
7979

8080
/**
81-
* Play audio in a call.
81+
* Play audio in the call.
8282
*
8383
* @param audioFileUri The media resource uri of the play audio request. Currently only Wave file (.wav) format
8484
* audio prompts are supported. More specifically, the audio content in the wave file must
@@ -87,7 +87,7 @@ public PlayAudioResult playAudio(String audioFileUri, PlayAudioOptions playAudio
8787
* @param context A {@link Context} representing the request context.
8888
* @throws CallingServerErrorException thrown if the request is rejected by server.
8989
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
90-
* @return the response payload for play audio operation.
90+
* @return Response payload for play audio operation.
9191
*/
9292
@ServiceMethod(returns = ReturnType.SINGLE)
9393
public Response<PlayAudioResult> playAudioWithResponse(
@@ -100,7 +100,7 @@ public Response<PlayAudioResult> playAudioWithResponse(
100100
}
101101

102102
/**
103-
* Disconnect the current caller in a group-call or end a p2p-call.
103+
* Disconnect from a call.
104104
*
105105
* @throws CallingServerErrorException thrown if the request is rejected by server.
106106
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -111,12 +111,12 @@ public void hangup() {
111111
}
112112

113113
/**
114-
* Disconnect the current caller in a group-call or end a p2p-call.
114+
* Disconnect from a call.
115115
*
116116
* @param context A {@link Context} representing the request context.
117117
* @throws CallingServerErrorException thrown if the request is rejected by server.
118118
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
119-
* @return response for a successful hangup request.
119+
* @return Response for a successful hangup request.
120120
*/
121121
@ServiceMethod(returns = ReturnType.SINGLE)
122122
public Response<Void> hangupWithResponse(final Context context) {
@@ -130,7 +130,7 @@ public Response<Void> hangupWithResponse(final Context context) {
130130
* communications related to this operation
131131
* @throws CallingServerErrorException thrown if the request is rejected by server.
132132
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
133-
* @return response for a successful cancel all media operations request.
133+
* @return Response for a successful cancel all media operations request.
134134
*/
135135
@ServiceMethod(returns = ReturnType.SINGLE)
136136
public CancelAllMediaOperationsResult cancelAllMediaOperations(String operationContext) {
@@ -145,7 +145,7 @@ public CancelAllMediaOperationsResult cancelAllMediaOperations(String operationC
145145
* @param context A {@link Context} representing the request context.
146146
* @throws CallingServerErrorException thrown if the request is rejected by server.
147147
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
148-
* @return response for a successful cancel all media operations request.
148+
* @return Response for a successful cancel all media operations request.
149149
*/
150150
@ServiceMethod(returns = ReturnType.SINGLE)
151151
public Response<CancelAllMediaOperationsResult> cancelAllMediaOperationsWithResponse(
@@ -158,12 +158,12 @@ public Response<CancelAllMediaOperationsResult> cancelAllMediaOperationsWithResp
158158
* Add a participant to the call.
159159
*
160160
* @param participant Added participant.
161-
* @param alternateCallerId The phone number to use when adding a phone number participant.
162-
* @param operationContext The value to identify context of the operation. This is used to co-relate other
161+
* @param alternateCallerId Phone number to use when adding a phone number participant.
162+
* @param operationContext Value to identify context of the operation. This is used to co-relate other
163163
* communications related to this operation
164164
* @throws CallingServerErrorException thrown if the request is rejected by server.
165165
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
166-
* @return response for a successful add participant request.
166+
* @return Response for a successful add participant request.
167167
*/
168168
@ServiceMethod(returns = ReturnType.SINGLE)
169169
public AddParticipantResult addParticipant(
@@ -177,13 +177,13 @@ public AddParticipantResult addParticipant(
177177
* Add a participant to the call.
178178
*
179179
* @param participant Added participant.
180-
* @param alternateCallerId The phone number to use when adding a phone number participant.
181-
* @param operationContext The value to identify context of the operation. This is used to co-relate other
180+
* @param alternateCallerId Phone number to use when adding a phone number participant.
181+
* @param operationContext Value to identify context of the operation. This is used to co-relate other
182182
* communications related to this operation
183-
* @param context A {@link Context} representing the request context.
183+
* @param context {@link Context} representing the request context.
184184
* @throws CallingServerErrorException thrown if the request is rejected by server.
185185
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
186-
* @return response for a successful add participant request.
186+
* @return Response for a successful add participant request.
187187
*/
188188
@ServiceMethod(returns = ReturnType.SINGLE)
189189
public Response<AddParticipantResult> addParticipantWithResponse(
@@ -211,10 +211,10 @@ public void removeParticipant(String participantId) {
211211
* Remove a participant from the call.
212212
*
213213
* @param participantId Participant id.
214-
* @param context A {@link Context} representing the request context.
214+
* @param context {@link Context} representing the request context.
215215
* @throws CallingServerErrorException thrown if the request is rejected by server.
216216
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
217-
* @return response for a successful remove participant request.
217+
* @return Response for a successful remove participant request.
218218
*/
219219
@ServiceMethod(returns = ReturnType.SINGLE)
220220
public Response<Void> removeParticipantWithResponse(String participantId, final Context context) {

0 commit comments

Comments
 (0)