Skip to content

Files

Latest commit

d340cac · Oct 2, 2023

History

History

voice-apps-calling

page_type languages products
sample
javascript
azure
azure-communication-services

Build your first Teams calling application

This tutorial demonstrates step-by-step instructions to build a video calling web application empowered by Azure Communication Service. This application connects you to a Microsoft Teams voice application as shown in the picture. The tutorial has a prerequisites section that prepares you for further development. After the prerequisites section, we will prepare you for web development environment; give you sample code to build and run; and teach you how to use the application.

Render of sample application

Table of Contents

Prerequisites

Setup Development Environment

  1. Open terminal and run the following command to create a folder for your calling application.
mkdir myTeamsCallingApp && cd myTeamsCallingApp

Render of command prompt

  1. Install packages with the following commands.
npm install @azure/communication-common@next --save
npm install @azure/communication-calling@latest --save
  1. Install webpack with the following command.

Run the code

  1. Build and run your code with the following command in terminal.
npx webpack-dev-server --entry ./client.js --output bundle.js --debug --devtool inline-source-map
  1. Go to http://localhost:8080/ from your browser to access the application. Render of application

Use the application

  1. Enter the User access token you acquired from Prerequisites, and click login Render of application

  2. Enter a Teams id you acquired from “Prerequisites” as your callee, and click Start Call Render of application

Congratulations! You just set up your first Teams calling application!

Render of sample application

Ask questions

You can post your questions via our support channels.