Rate this page:

Processing voice calls in SDKs

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.

Contents

Copy URL

How to make an audio call

Copy URL

In your application, prepare the call settings before you make a call. Then use the call method to make a call from the application to the scenario.

Specify the destination you want to call to the first parameter of the call method. This can be either user, phone number or sip address.

Call a user from an application

Call a user from an application

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.

Scenario example

Scenario example

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

Copy URL

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.

Then, in the application, subscribe to the IncomingCall event, and use the call.answer event to answer a call or the call.decline event to decline a call.

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:

Answer a call in an application

Answer a call in an application

Frequestly asked questions

Copy URL

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

Copy URL

Here you can download our audio calls demos for multiple platforms for your instance: