Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
02635e0
Updated list of libraries to patch in patch-release.yml
azure-sdk Apr 24, 2024
29c5f30
Reset sources for azure-communication-email to the release version 1.…
azure-sdk Apr 24, 2024
0ff9929
Prepare azure-communication-email for 1.0.12 patch release.
azure-sdk Apr 24, 2024
612ea7f
Reset sources for azure-communication-jobrouter to the release versio…
azure-sdk Apr 24, 2024
9707581
Prepare azure-communication-jobrouter for 1.1.3 patch release.
azure-sdk Apr 24, 2024
39a27b8
Reset sources for azure-communication-identity to the release version…
azure-sdk Apr 24, 2024
f4076b5
Prepare azure-communication-identity for 1.5.4 patch release.
azure-sdk Apr 24, 2024
ffbe87c
Reset sources for azure-ai-contentsafety to the release version 1.0.1.
azure-sdk Apr 24, 2024
b44161a
Prepare azure-ai-contentsafety for 1.0.2 patch release.
azure-sdk Apr 24, 2024
9be0e0f
Reset sources for azure-communication-sms to the release version 1.1.22.
azure-sdk Apr 24, 2024
0bcf9b8
Prepare azure-communication-sms for 1.1.23 patch release.
azure-sdk Apr 24, 2024
78e3326
Reset sources for azure-communication-common to the release version 1…
azure-sdk Apr 24, 2024
d35e70d
Prepare azure-communication-common for 1.3.2 patch release.
azure-sdk Apr 24, 2024
4afc185
Reset sources for azure-communication-messages to the release version…
azure-sdk Apr 24, 2024
890bf33
Prepare azure-communication-messages for 1.0.2 patch release.
azure-sdk Apr 24, 2024
a4d97f3
Prepare azure-communication-rooms for 1.1.1 patch release.
azure-sdk Apr 24, 2024
b7a5204
Reset sources for azure-communication-callautomation to the release v…
azure-sdk Apr 24, 2024
a6fcd58
Prepare azure-communication-callautomation for 1.1.4 patch release.
azure-sdk Apr 24, 2024
aa04382
Reset sources for azure-communication-phonenumbers to the release ver…
azure-sdk Apr 24, 2024
beaaf6e
Prepare azure-communication-phonenumbers for 1.1.12 patch release.
azure-sdk Apr 24, 2024
f4c25db
Updated dependencies in libraries and READMEs via version_client.txt
azure-sdk Apr 24, 2024
e9977bb
remove typespec and don't run it in the ci pipeline
mssfang Apr 24, 2024
dc545c4
remove tsp in jobroute
mssfang Apr 24, 2024
4df6341
add azure-core-http-netty as compile dependency
mssfang Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
46 changes: 37 additions & 9 deletions eng/pipelines/patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,44 @@ extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client-patch.yml
parameters:
artifacts:
- name: azure-sdk-template
- name: azure-communication-email
groupId: com.azure
safeName: azuresdktemplate
ServiceDirectory: template
- name: azure-sdk-template-two
safeName: azurecommunicationemail
ServiceDirectory: communication
- name: azure-communication-jobrouter
groupId: com.azure
safeName: azuresdktemplatetwo
ServiceDirectory: template
- name: azure-sdk-template-three
safeName: azurecommunicationjobrouterclient
ServiceDirectory: communication
- name: azure-communication-identity
groupId: com.azure
safeName: azuresdktemplatethree
ServiceDirectory: template
safeName: azurecommunicationidentity
ServiceDirectory: communication
- name: azure-ai-contentsafety
groupId: com.azure
safeName: azureaicontentsafety
ServiceDirectory: contentsafety
- name: azure-communication-sms
groupId: com.azure
safeName: azurecommunicationsms
ServiceDirectory: communication
- name: azure-communication-common
groupId: com.azure
safeName: azurecommunicationcommon
ServiceDirectory: communication
- name: azure-communication-messages
groupId: com.azure
safeName: azurecommunicationmessages
ServiceDirectory: communication
- name: azure-communication-rooms
groupId: com.azure
safeName: azurecommunicationrooms
ServiceDirectory: communication
- name: azure-communication-callautomation
groupId: com.azure
safeName: azurecommunicationcallautomation
ServiceDirectory: communication
- name: azure-communication-phonenumbers
groupId: com.azure
safeName: azurecommunicationphonenumbers
ServiceDirectory: communication

20 changes: 10 additions & 10 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ com.azure:azure-sdk-all;1.0.0;1.0.0
com.azure:azure-sdk-parent;1.6.0;1.6.0
com.azure:azure-client-sdk-parent;1.7.0;1.7.0
com.azure:azure-ai-anomalydetector;3.0.0-beta.5;3.0.0-beta.6
com.azure:azure-ai-contentsafety;1.0.1;1.1.0-beta.1
com.azure:azure-ai-contentsafety;1.0.1;1.0.2
com.azure:azure-ai-documentintelligence;1.0.0-beta.2;1.0.0-beta.3
com.azure:azure-ai-documenttranslator;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-ai-formrecognizer;4.1.6;4.2.0-beta.1
Expand Down Expand Up @@ -67,19 +67,19 @@ com.azure:azure-aot-graalvm-support-netty;1.0.0-beta.3;1.0.0-beta.4
com.azure:azure-aot-graalvm-samples;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-aot-graalvm-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-code-customization-parent;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-communication-callautomation;1.1.3;1.2.0-beta.1
com.azure:azure-communication-callautomation;1.1.3;1.1.4
com.azure:azure-communication-callingserver;1.0.0-beta.4;1.0.0-beta.5
com.azure:azure-communication-chat;1.5.0;1.6.0-beta.1
com.azure:azure-communication-common;1.3.1;1.4.0-beta.1
com.azure:azure-communication-common;1.3.1;1.3.2
com.azure:azure-communication-common-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-communication-email;1.0.11;1.1.0-beta.1
com.azure:azure-communication-identity;1.5.3;1.6.0-beta.1
com.azure:azure-communication-jobrouter;1.1.2;2.0.0-beta.1
com.azure:azure-communication-messages;1.0.1;1.1.0-beta.1
com.azure:azure-communication-email;1.0.11;1.0.12
com.azure:azure-communication-identity;1.5.3;1.5.4
com.azure:azure-communication-jobrouter;1.1.2;1.1.3
com.azure:azure-communication-messages;1.0.1;1.0.2
com.azure:azure-communication-networktraversal;1.1.0;1.2.0-beta.1
com.azure:azure-communication-phonenumbers;1.1.11;1.2.0-beta.4
com.azure:azure-communication-rooms;1.0.9;1.1.0
com.azure:azure-communication-sms;1.1.22;1.2.0-beta.1
com.azure:azure-communication-phonenumbers;1.1.11;1.1.12
com.azure:azure-communication-rooms;1.0.9;1.1.1
com.azure:azure-communication-sms;1.1.22;1.1.23
com.azure:azure-containers-containerregistry;1.2.6;1.3.0-beta.1
com.azure:azure-containers-containerregistry-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-core;1.48.0;1.49.0-beta.1
Expand Down
36 changes: 15 additions & 21 deletions sdk/communication/azure-communication-callautomation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Release History

## 1.2.0-beta.1 (Unreleased)
## 1.1.4 (2024-04-23)

- Introduced `TeamsRecordingStateChanged` and `TeamsComplianceRecordingStateChanged` events.

### Features Added

### Breaking Changes
### Other Changes

### Bugs Fixed
#### Dependency Updates

### Other Changes
- Upgraded `azure-core` from `1.47.0` to version `1.48.0`.
- Upgraded `azure-communication-common` from `1.3.0` to version `1.3.1`.


## 1.1.3 (2024-03-20)
Expand All @@ -19,9 +16,7 @@

#### Dependency Updates

- Upgraded `azure-core-http-netty` from `1.14.0` to version `1.14.1`.
- Upgraded `azure-core` from `1.46.0` to version `1.47.0`.
- Upgraded `azure-communication-common` from `1.3.0` to version `1.3.1`.


## 1.1.2 (2024-02-20)
Expand All @@ -43,7 +38,6 @@
- Upgraded `azure-communication-common` from `1.2.14` to version `1.2.15`.
- Upgraded `azure-core` from `1.44.0` to version `1.45.1`.


## 1.1.0 (2023-11-23)

### Features Added
Expand All @@ -57,16 +51,6 @@

- Dependency versions updated.

## 1.1.0-beta.1 (2023-08-17)

### Features Added

- Play and recognize supports TTS and SSML source prompts.
- Recognize supports choices and freeform speech.
- Start/Stop continuous DTMF recognition by subscribing/unsubscribing to tones.
- Send DTMF tones to a participant in the call.
- Mute participants in the call.

## 1.0.6 (2023-11-20)

### Other Changes
Expand Down Expand Up @@ -102,6 +86,16 @@

- Upgraded `azure-core` from `1.41.0` to version `1.42.0`.

## 1.1.0-beta.1 (2023-08-17)

### Features Added

- Play and recognize supports TTS and SSML source prompts.
- Recognize supports choices and freeform speech.
- Start/Stop continuous DTMF recognition by subscribing/unsubscribing to tones.
- Send DTMF tones to a participant in the call.
- Mute participants in the call.

## 1.0.2 (2023-07-25)

### Other Changes
Expand Down
54 changes: 3 additions & 51 deletions sdk/communication/azure-communication-callautomation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This package contains a Java SDK for Azure Communication Call Automation Service
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-callautomation</artifactId>
<version>1.1.0</version>
<version>1.1.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -41,54 +41,7 @@ This is the restart of Call Automation Service. It is renamed to Call Automation

## Examples

### Handle Mid-Connection events with CallAutomation's EventProcessor
To easily handle mid-connection events, Call Automation's SDK provides easier way to handle these events.
Take a look at `CallAutomationEventProcessor`. This will ensure correlation between call and events more easily.
```Java
@RestController
public class ActionController {
// Controller implementation...

@RequestMapping(value = "/api/events", method = POST)
public ResponseEntity<?> handleCallEvents(@RequestBody String requestBody) {
try {
CallAutomationAsyncClient client = getCallAutomationAsyncClient();
client.getEventProcessor().processEvents(requestBody);

return new ResponseEntity<>(HttpStatus.OK);
} catch (Exception e) {
return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
}
}
}
```
`processEvents` is required for EventProcessor to work.
After event is being consumed by EventProcessor, you can start using its feature.

See below for example: where you are making a call with `CreateCall`, and wait for `CallConnected` event of the call.

```Java
public class commandClass {
// Class implementation...

public void createCallCommand() {
CallAutomationAsyncClient client = getCallAutomationAsyncClient(); // Should be the same instance as the one used in the example above.
String callbackUrl = "<YOUR_CALL_BACK_URL>";
CallInvite callInvite = new CallInvite(new CommunicationUserIdentifier("<TARGET_USER_ID>"));
CreateCallResult result = client.createCall(callInvite, callbackUrl).block();

try {
// This will wait until CallConnected event is arrived or Timesout!
CreateCallEventResult eventResult = result.waitForEventProcessorAsync(Duration.ofSeconds(30)).block();
CallConnected returnedEvent = eventResult.successResult();
} catch (Exception e) {
// Timeout exception happend!
// Call likely was never answered.
}
}
}
```
If timeout was not set when calling "waitForEventProcessorAsync", the default timeout is 4 minutes.
To be determined.

## Troubleshooting

Expand All @@ -107,7 +60,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments.

## Next steps

- [Call Automation Overview][overview]
- [Incoming Call Concept][incomingcall]
- [Build a customer interaction workflow using Call Automation][build1]
Expand Down Expand Up @@ -135,4 +87,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[build4]: https://learn.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/recognize-action?pivots=programming-language-java
[recording1]: https://learn.microsoft.com/azure/communication-services/concepts/voice-video-calling/call-recording
[recording2]: https://learn.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/get-started-call-recording?pivots=programming-language-java
[cognitive_integration]: https://learn.microsoft.com/azure/communication-services/concepts/call-automation/azure-communication-services-azure-cognitive-services-integration
[cognitive_integration]: https://learn.microsoft.com/azure/communication-services/concepts/call-automation/azure-communication-services-azure-cognitive-services-integration

This file was deleted.

35 changes: 9 additions & 26 deletions sdk/communication/azure-communication-callautomation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<groupId>com.azure</groupId>
<artifactId>azure-communication-callautomation</artifactId>
<packaging>jar</packaging>
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-callautomation;current} -->
<version>1.1.4</version> <!-- {x-version-update;com.azure:azure-communication-callautomation;current} -->

<name>Microsoft Azure client library for Call Automation service</name>
<description>
Expand All @@ -40,8 +40,8 @@
<properties>
<src.dir>src/main</src.dir>
<test.dir>src/test</test.dir>
<jacoco.min.linecoverage>0.75</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.62</jacoco.min.branchcoverage>
<jacoco.min.linecoverage>0.70</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.65</jacoco.min.branchcoverage>
<jacoco.skip>false</jacoco.skip>
<!-- Configures the Java 9+ run to perform the required module exports, opens, and reads that are necessary for testing but shouldn't be part of the module-info. -->
<javaModulesSurefireArgLine>
Expand Down Expand Up @@ -110,6 +110,12 @@
<version>1.3</version> <!-- {x-version-update;org.hamcrest:hamcrest-all;external_dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.11.0</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
Expand All @@ -122,12 +128,6 @@
<version>1.11.20</version> <!-- {x-version-update;com.azure:azure-core-http-okhttp;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-vertx</artifactId>
<version>1.0.0-beta.17</version> <!-- {x-version-update;com.azure:azure-core-http-vertx;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
Expand Down Expand Up @@ -185,21 +185,4 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>java12plus</id>
<activation>
<jdk>[12,)</jdk>
</activation>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-jdk-httpclient</artifactId>
<version>1.0.0-beta.12</version> <!-- {x-version-update;com.azure:azure-core-http-jdk-httpclient;dependency} -->
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
Loading