JavaScript
Introduction
In this tutorial, you will learn how to create a web application using the Vonage JavaScript Client SDK, and then write the code to have one User make a voice call to another User.
Two parts are needed to achieve this:
- A web application that will make a voice call from one User to another User using the Client SDK.
- A publicly accessible URL that serves instructions on how to handle the call. To accomplish this, you will create a webhook server using Node.js, Express and localtunnel.
Completed project
If you would like to follow along without building the app yourself, the completed project is available on Github - please see the app-to-app-js folder.
This tutorial uses @vonage/client-sdk version 1.0 or greater
Making an app to app voice call
Make a voice call from one web app User to another web app User using the JavaScript Client SDK.
Steps
1
Introduction to this task2
Prerequisites3
Create a webhook server4
Create a Vonage Application5
Create the users6
Generate JWTs7
Install Client SDK8
Create the code to make an in-app voice call9
Create the code to receive an in-app voice call10
Run your application11
What's next?