This article will help you to make and receive calls in your web or mobile application.
Before you implement calling functionality in your web or mobile application, you need to create your application, import our SDK, connect to Voximplant and login with your user. See this guide to learn how to do this.
How to make an audio call
After you start a call in your mobile or web application, you receive this call in the platform. Create a proper routing rule to match the destination in the first parameter of the call method in your SDK.
In the scenario, depending on your destination (a user/phone number/sip), call one of the methods described in this article to create a proper call. You can retreive your call destination value from the
e.destination property. Then unite the application call and the scenario call via the easyProcess method.
Please note, that if you are making a call via web or mobile SDK, it consists of two call legs: SDK → scenario and scenario → destination. In this case, the SDK → scenario call leg is considered an inbound call in the scenario, so you need to process it via the CallAlerting event as well. Read the How to process calls in a scenario article to learn more about processing inbound and outbound calls in scenarios.
Use the hangup method in your application to end the call.
How to process an inbound call
All the inbound calls in Voximplant are processed by routing rules. Before you process an inbound call, create a routing rule and set it up for your specific scenario. Follow this guide to learn how to do this.
To make calls into an application, you need to call a user that is currently logged into the application.
Refer to the API Reference of your platform to find information about the methods. Here is a code example on how to answer and decline a call in a Web/iOS/Android application:
Frequently asked questions
Q: I want to make a button for my website which accepts some data, like phone number and customer name, and makes a call. How can I implement this?
A: You can implement it manually from scratch using our Web SDK or use our ready-to-use Click-to-call widget for websites.
Q: Can I call stationary or mobile numbers without a caller ID?
A: No, you cannot. You need a caller ID to make calls to phone number. You can use your own phone number, but this feature has limitations, for example, you cannot use Russian mobile numbers. If you rent a phone number from Voximplant, there are no limitations.
Q: I want to integrate VoIP calls to my existing application to make user-to-user calls. I have thousands of users, do they need to be registered as Voximplant users? How do I authorize the users?
A: The VoIP calls are available only between registered users. If you have big amounts of users, you can use the Management API's AddUser method to register users on our platform. You can use the one-time key for your users authorization and then use the callUser or callUserDirect to make calls.
Download our demos
Here you can download our voice calls demos for multiple platforms for your instance: