diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..ed9462b7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "markdownlint.config": { + "MD028": false, + "MD025": { + "front_matter_title": "" + } + } +} \ No newline at end of file diff --git a/README.md b/README.md index 7b595edb..0a9011ea 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,12 @@ Azure Communication Services enable developers to add communication capabilities 8. [Call To Phone](https://docs.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/pstn-call?pivots=platform-web) -9. [Use managed identities](https://docs.microsoft.com/azure/communication-services/quickstarts/managed-identity?pivots=programming-language-javascript) \ No newline at end of file +9. [Use managed identities](https://docs.microsoft.com/azure/communication-services/quickstarts/managed-identity?pivots=programming-language-javascript) + +10. [Get Started with UI Components](https://azure.github.io/communication-ui-library/?path=/story/quickstarts-uicomponents--page) + +11. [Get Started with Composites](https://azure.github.io/communication-ui-library/?path=/story/quickstarts-composites--page) + +12. [Get Started with Chat Stateful Client](https://azure.github.io/communication-ui-library/?path=/story/quickstarts-statefulclient--page) + +13. [Get Started with Call Stateful Client](https://azure.github.io/communication-ui-library/?path=/story/quickstarts-statefulclient--page) diff --git a/add-1-on-1-phone-calling/README.md b/add-1-on-1-phone-calling/README.md index 3252a609..818623cb 100644 --- a/add-1-on-1-phone-calling/README.md +++ b/add-1-on-1-phone-calling/README.md @@ -9,7 +9,7 @@ products: # Add 1 on 1 phone calling to your application -This code sample walks through the process of integration Azure Communication Services phone calling into your Javascript application. +This code sample walks through the process of integration Azure Communication Services phone calling into your JavaScript application. This quickstart sample includes the code that is explained as part of [this document](https://docs.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/pstn-call?pivots=platform-web). See that document for additional details on how this sample works. diff --git a/add-1-on-1-video-calling/README.md b/add-1-on-1-video-calling/README.md index 9682f0e9..012feda1 100644 --- a/add-1-on-1-video-calling/README.md +++ b/add-1-on-1-video-calling/README.md @@ -9,7 +9,7 @@ products: # Add 1 on 1 video calling to your application -This code sample walks through the process of integration Azure Communication Services video calling into your Javascript application. +This code sample walks through the process of integration Azure Communication Services video calling into your JavaScript application. This quickstart sample includes the code that is explained as part of [this document](https://docs.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/get-started-with-video-calling). See that document for additional details on how this sample works. @@ -22,7 +22,8 @@ This quickstart sample includes the code that is explained as part of [this docu ## Run the code 1. Run `npm i` on the directory of the project to install dependencies -2. Use the webpack-dev-server to build and run your app. Run the following command to bundle application host in on a local webserver: +2. Add a [user access token](https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-javascript) in line 54 of the `client.js`. +3. Use the webpack-dev-server to build and run your app. Run the following command to bundle application host in on a local webserver: npx webpack-dev-server --entry ./client.js --output bundle.js --debug --devtool inline-source-map diff --git a/add-1-on-1-voice-calling/README.md b/add-1-on-1-voice-calling/README.md index 50171571..da23b407 100644 --- a/add-1-on-1-voice-calling/README.md +++ b/add-1-on-1-voice-calling/README.md @@ -9,7 +9,7 @@ products: # Add 1 on 1 voice calling to your application -This code sample walks through the process of integration Azure Communication Services voice calling into your Javascript application. +This code sample walks through the process of integration Azure Communication Services voice calling into your JavaScript application. This quickstart sample includes the code that is explained as part of [this document](https://docs.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/getting-started-with-calling?pivots=platform-web). See that document for additional details on how this sample works. diff --git a/add-chat/README.md b/add-chat/README.md index 27cc049e..28ebdf8f 100644 --- a/add-chat/README.md +++ b/add-chat/README.md @@ -9,7 +9,7 @@ products: # Add chat to your application -This code sample walks through the process of integration Azure Communication Services real time chat into your Javascript application. +This code sample walks through the process of integration Azure Communication Services real time chat into your JavaScript application. This quickstart sample includes the code that is explained as part of [this document](https://docs.microsoft.com/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-javascript). See that document for additional details on how this sample works. diff --git a/incoming-call-routing/.gitignore b/incoming-call-routing/.gitignore new file mode 100644 index 00000000..82121664 --- /dev/null +++ b/incoming-call-routing/.gitignore @@ -0,0 +1,3 @@ +bin/* +node_modules +.vscode \ No newline at end of file diff --git a/incoming-call-routing/README.md b/incoming-call-routing/README.md new file mode 100644 index 00000000..c9c16a23 --- /dev/null +++ b/incoming-call-routing/README.md @@ -0,0 +1,41 @@ +How to run +1. Create ACS resource from Azure Portal + +2. Create 3 ACS User Identities(MRI) +Example +``` +User 1: 8:acs:- +User 2: 8:acs:- +User 3: 8:acs:- +``` + +3. Put User2 MRI into the config AllowedRecipientList + +4. Put User3 MRI into the config TargetParticipant + +5. Start ngrok +``` +ngrok http 3000 +``` + +6. Update config with ngrok endpoint. Example +``` +"appCallbackBaseUri": "https://4087-75-155-234-140.ngrok.io" +``` + +7. Start sample app locally +``` +npm run start +``` + +or to hot reload +``` +npm run dev +``` + +8. Register webhook to your ACS resource +``` +armclient put "/subscriptions//resourceGroups//providers/Microsoft.Communication/CommunicationServices//providers/Microsoft.EventGrid/eventSubscriptions/IncomingCallEventSub?api-version=2020-06-01" "{'properties':{'destination':{'properties':{'endpointUrl':'https:///OnIncomingCall'},'endpointType':'WebHook'},'filter':{'includedEventTypes': ['Microsoft.Communication.IncomingCall']}}}" -verbose +``` + +9. Make a call from User1 to User2 \ No newline at end of file diff --git a/incoming-call-routing/appsettings.json b/incoming-call-routing/appsettings.json new file mode 100644 index 00000000..c989d885 --- /dev/null +++ b/incoming-call-routing/appsettings.json @@ -0,0 +1,7 @@ +{ + "resourceConnectionString": "", + "appCallbackBaseUri": "", + "audioFileUri": "