Video Conference Dial in
Video Conference Dial in
3.0.2
Vonage
NodeJS
Dial into a Video Conference using the Vonage Video and Voice APIs
Using the Vonage Video API and Voice APIs, you can create a conference video call which supports dial in.You can connect phone calls to a video call session, which means that a user can join a video call session with an audio-only stream by calling from their phone.
In this project, you’ll use both the Video API SIP Dial-out feature and Voice API Dial-in feature to connect the video session and voice call.The project uses Vonage Cloud Runtime, removing the need to manage servers and hosting. Visit the developer portal to view documentation on how it works.
The project also provides APIs that can be used as a connector between your Vonage Video application and Dial-In Voice call.
APIs:
Authorization: VONAGE JWT
Get the Authorization Token for all the API Requests:
POST: ${ApplicationHost}/auth-token
BODY: {apiKey: ${vonage-apiKey}}
Response Sample: {authToken: ${VONAGE JWT}}
Generate Video Token for joining a Video Session:
GET: ${ApplicationHost}/room/:roomName
QUERY: Optional (role="publisher" OR "subscriber" OR "moderator")
HEADERS: Authorization: ${VONAGE JWT}
Response Sample:{
sessionId: xxx,
videoToken: xxx,
roomId: xxx,
pinCode: xxx
}
Pin Code is used to verify if a Voice call is allowed to join a Video session. To get the pincode:
GET: ${ApplicationHost}/pin-code/:sessionId
HEADERS: Authorization: ${VONAGE JWT})
Response Sample : {pinCode: xxxx}
To hang up the Voice Call(s) in a video session:
POST: ${ApplicationHost}/hang-up/:sessionId
HEADERS: Authorization: ${VONAGE JWT})
BODY: Optional ({connectionId : xxxx})
Steps
- To start, ensure you are signed into your Vonage developer account. If you do not have an account yet, you can create one here.
- To immediately deploy the application, go to the ‘Deploy Code’ tab. Enter a name for your application in ‘Instance Name’, select your AWS region, and click the ‘Deploy Code’ button.
- You will see a pop up prompting you to enter a workspace name, click ‘Assign a number’ to select your number from the list, then continue to create the application.
- You will then see your new application under ‘Deployed Instances’. Click ‘Launch’ to run it.
- To view the code and edit the application, go to ‘Get Code’ and click ‘Create a new development environment’.
- You will see a pop up prompting you to enter a workspace name, click ‘Assign a number’ to select your number from the list, then continue to launch the workspace.
- When the workspace opens, you will see a README detailing how to edit, debug, run, and deploy the project.
- Once your project is deployed, you can use the URLs in the terminal output to access your application.