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

Feature/communication server calling preview1 #21017

Merged
merged 78 commits into from
Jun 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
4abf245
Onboard ServerCalling feature project.
zihzhan-msft Apr 20, 2021
bf61192
Onboard Server Calling Test project.
zihzhan-msft May 5, 2021
f1b4af7
Onboard Server Calling Test project.
zihzhan-msft May 5, 2021
ea62eb0
New apis and models for different operations.
navali-msft May 12, 2021
3643e72
merge
navali-msft May 12, 2021
88e0887
Update Recorded Test files.
zihzhan-msft May 12, 2021
c6314a3
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft May 12, 2021
76983b4
Naming changes and fix build.
zihzhan-msft May 12, 2021
40ac96a
Resolve comments.
zihzhan-msft May 13, 2021
2dec113
Removed operationContext from Recording apis (#21309)
Paresh-Arvind-Patil May 26, 2021
409c063
Onboard ServerCalling feature project.
zihzhan-msft Apr 20, 2021
d1b16fa
Onboard Server Calling Test project.
zihzhan-msft May 5, 2021
9245b49
New apis and models for different operations.
navali-msft May 12, 2021
37132da
Onboard Server Calling Test project.
zihzhan-msft May 5, 2021
b6b8d50
Update Recorded Test files.
zihzhan-msft May 12, 2021
4d10b93
Naming changes and fix build.
zihzhan-msft May 12, 2021
f32a74b
Resolve comments.
zihzhan-msft May 13, 2021
13d44ba
Address comments.
zihzhan-msft May 18, 2021
001bc97
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft May 27, 2021
928caea
Fix build
zihzhan-msft May 27, 2021
46f30e9
Fixed the typo CallRecordingStateChangeEvent EventType (#21434)
Paresh-Arvind-Patil May 28, 2021
857f3b5
remove remaining context & request (#21437)
zihzhan-msft May 28, 2021
3ac2b00
Update swagger.
zihzhan-msft May 28, 2021
548d966
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft May 28, 2021
1a4982f
Update swagger link to a perm url.
zihzhan-msft May 28, 2021
ba8e7a9
Added PlayAudio Api on ConversationClient (Out-Call Scenario) (#21430)
Paresh-Arvind-Patil May 28, 2021
256ac64
Udpate Sdk based on new Swagger.
zihzhan-msft May 28, 2021
981ac22
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft May 28, 2021
18c7182
Update API version.
zihzhan-msft May 29, 2021
793dfab
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft May 31, 2021
8ba5038
Address comments.
zihzhan-msft Jun 1, 2021
db2afcd
Update apis with new swagger, address CallState enum.
zihzhan-msft Jun 1, 2021
754e6f6
Update Live test to use Instrumented Client.
zihzhan-msft Jun 1, 2021
9e82a99
Fix broken link
zihzhan-msft Jun 1, 2021
fbe9e87
Fix broken link
zihzhan-msft Jun 1, 2021
23156b7
Fixed merge conflicts
Jun 2, 2021
e59707a
Fix broken link
zihzhan-msft Jun 1, 2021
1e91c21
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 2, 2021
83e9159
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 2, 2021
296ab80
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 2, 2021
757b74e
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft Jun 2, 2021
91b6423
Adding AudioFileId and CallbackUri parameter in PlayAudio Api (Out-Ca…
Paresh-Arvind-Patil Jun 2, 2021
0b21e88
Mark failed live test as Ignore to unblock build.
zihzhan-msft Jun 2, 2021
0e4c0cb
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 2, 2021
8968d4b
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 2, 2021
53f81f8
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 2, 2021
c77ed60
Added events in the swagger, added model for creating serializer, com…
navali-msft Jun 2, 2021
828fa04
NIT fix
zihzhan-msft Jun 2, 2021
abba988
NIT fix (#21540)
zihzhan-msft Jun 2, 2021
ec8d963
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 2, 2021
1a914f2
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft Jun 2, 2021
dea0692
Fix build Analyze.
zihzhan-msft Jun 3, 2021
e858798
Fix build Analyze.
zihzhan-msft Jun 3, 2021
8959229
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 3, 2021
0fa008b
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft Jun 3, 2021
7c4605f
Minor fix for ConvClient joinCall api.
zihzhan-msft Jun 3, 2021
1bd2915
Minor fix for ConvClient joinCall api. (#21558)
zihzhan-msft Jun 3, 2021
d49285b
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 3, 2021
ce1e235
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft Jun 3, 2021
a25d550
Address comments.
zihzhan-msft Jun 3, 2021
b5090cd
Added unit test for recording apis (#21578)
Paresh-Arvind-Patil Jun 3, 2021
1020011
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft Jun 3, 2021
166c582
Address comments.
zihzhan-msft Jun 4, 2021
4b7e450
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 4, 2021
fc693ef
Specify parameters in RestApiCall.
zihzhan-msft Jun 4, 2021
36d1328
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft Jun 4, 2021
a20e269
Update Namespace to CallingServer.
zihzhan-msft Jun 4, 2021
c014fb2
Update links in md files.
zihzhan-msft Jun 4, 2021
f67c267
Update links in md files.
zihzhan-msft Jun 4, 2021
4111f57
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 4, 2021
4d5e510
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 4, 2021
e42c846
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 4, 2021
30c901d
Update CallClient.cs
zihzhan-msft Jun 7, 2021
8b14d8c
Update ConversationClient.cs
zihzhan-msft Jun 7, 2021
6c94329
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft Jun 7, 2021
d2634cf
Merge branch 'feature/communication-ServerCalling-preview1' of https:…
zihzhan-msft Jun 7, 2021
1ffd619
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
zihzhan-msft Jun 7, 2021
78d1f6e
Feature/zihzhan livetesting (#21677)
zihzhan-msft Jun 7, 2021
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
19 changes: 19 additions & 0 deletions sdk/communication/Azure.Communication.CallingServer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Release History

## 1.0.0-beta.1 (Unreleased)
This is the first release of Azure Communication Service Calling Server. For more information, please see the [README][read_me].

This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues).

### Features Added
- Create outbound call to an Azure Communication Service User or a phone number.
- Hangup and delete the existing call.
- Play audio in the call.
- Outbound apis for Call Recording including start, pause, resume and stop.
- Subscribe to and receive [DTMF][DTMF] tones via events.
- Invite and remove participants from the call.

<!-- LINKS -->
[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/a20e269162fa88a43e5ba0e5bb28f2e76c74a484/sdk/communication/Azure.Communication.CallingServer/README.md
[DTMF]: https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling

83 changes: 83 additions & 0 deletions sdk/communication/Azure.Communication.CallingServer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Azure Communication Server Calling client library for .NET

This package contains a C# SDK for Azure Communication Services for Calling.

[Source code][source] |[Product documentation][product_docs]
## Getting started

### Install the package
Install the Azure Communication Server Calling client library for .NET with [NuGet][nuget]:

```PowerShell
dotnet add package Azure.Communication.CallingServer --version 1.0.0-beta.1
```

### Prerequisites
You need an [Azure subscription][azure_sub] and a [Communication Service Resource][communication_resource_docs] to use this package.

To create a new Communication Service, you can use the [Azure Portal][communication_resource_create_portal], the [Azure PowerShell][communication_resource_create_power_shell], or the [.NET management client library][communication_resource_create_net].

### Key concepts
`CallClient` provides the functionality to make call related operations.

### Using statements
```C# Snippet:Azure_Communication_ServerCalling_Tests_UsingStatements
using System;
using System.Collections.Generic;
using Azure.Communication.CallingServer;
```

### Authenticate the client
Server Calling clients can be authenticated using the connection string acquired from an Azure Communication Resource in the [Azure Portal][azure_portal].

```C# Snippet:Azure_Communication_ServerCalling_Tests_Samples_CreateServerCallingClient
var connectionString = "<connection_string>"; // Find your Communication Services resource in the Azure portal
CallClient client = new CallClient(connectionString);
```

## Examples
### Make a call to a phone number recipient
To make a call, call the `CreateCall` or `CreateCallAsync` function from the `CallClient`.
```C# Snippet:Azure_Communication_Call_Tests_CreateCallOptions
var createCallOption = new CreateCallOptions(
new Uri(TestEnvironment.AppCallbackUrl),
new List<CallModality> { CallModality.Audio },
new List<EventSubscriptionType>
{
EventSubscriptionType.ParticipantsUpdated,
EventSubscriptionType.DtmfReceived
});
```
```C# Snippet:Azure_Communication_Call_Tests_CreateCallAsync
CreateCallResponse createCallResponse = await callClient.CreateCallAsync(
source: new CommunicationUserIdentifier("<source-identifier>"), // Your Azure Communication Resource Guid Id used to make a Call
targets: new List<CommunicationIdentifier>() { new PhoneNumberIdentifier("<targets-phone-number>") }, // E.164 formatted recipient phone number
options: createCallOption // The options for creating a call.
);
Console.WriteLine($"Call Leg id: {createCallResponse.CallLegId}");
```

## Troubleshooting
A `RequestFailedException` is thrown as a service response for any unsuccessful requests. The exception contains information about what response code was returned from the service.

## Next steps

## Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit [cla.microsoft.com][cla].

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.

<!-- LINKS -->
[azure_sub]: https://azure.microsoft.com/free/
[azure_portal]: https://portal.azure.com
[cla]: https://cla.microsoft.com
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
[coc_contact]: mailto:opencode@microsoft.com
[communication_resource_docs]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp
[communication_resource_create_portal]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp
[communication_resource_create_power_shell]: https://docs.microsoft.com/powershell/module/az.communication/new-azcommunicationservice
[communication_resource_create_net]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-net
[product_docs]: https://docs.microsoft.com/azure/communication-services/overview
[nuget]: https://www.nuget.org/
[source]: https://github.com/Azure/azure-sdk-for-net/tree/a20e269162fa88a43e5ba0e5bb28f2e76c74a484/sdk/communication/Azure.Communication.CallingServer/src
Loading