Receive and Make Local Calls
Receive and Make Local Calls
1.1.0
Benjamin Aronov
NodeJS
A quick way to add 2-way call forwarding through a Vonage Virtual Number to make local calls easily.
The Vonage Voice API allows you to connect people around the world and automate voice interactions that deliver a frictionless extension of your brand experience using AI technologies.
This project allows you to leverage the Voice API so that when travelling, you can have a local number for people to reach you. With this application, you can receive calls at a local phone number which are then forwarded to your cell phone. Additionally, you can dial out so that local friends don't need to worry about International Fees when you call them.
This project uses Vonage Cloud Runtime, removing the need to manage servers and hosting. Visit the developer portal to view documentation on how it works.
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.
- Open the Get Code tab.
- There you will find the Create a new development environment button. Click it!
- This will pop open a panel which will ask you to set up your project deployment:
- Region: select the region closest to you
- Workspace name: select something descriptive, e.g. "My American Local Call Forwarding"
- Home Country Number: Your Vonage Virtual Number with the country code of your home country (same country code as your personal number).
- Destination Number: Your Vonage Virtual Number with the country code of your destination locale.
- Personal Number: This should be your normal number to which calls are forwarded.
For all numbers, the International code is required, without +
- Example of US Number: 15551234567
- Example of UK Number: 445551234567
5. Once the development environment opens, using the Explorer tab (shift+command+E) open the index.js file. This is where all the code for the project lives. You can see the logic of the application here. But you don't need to do anything! 6. Now open the terminal from the top bar (^+shift+`) and deploy the new code:
vcr deploy