Make a Call

Overview

This guide covers the functionalities in your Vonage Client application, in order to start in-app or server-managed voice calls.

Before you begin, make sure you added the SDK to your app.

Start an In-App Call

The quickest way to start an in-app call is by conducting an in-app to in-app call, meaning between two users.

The possible voice capabilities are very limited, as this doesn't utilize the Voice API. This method is recommended mostly for onboarding. Later, it is recommended to use a server managed call.

Start a Server Managed Call

This method allows you to conduct in-app calls as well as phone calls while taking advantage of the rich Voice API features.

When your client app calls this method, the answer_url webhook that is configured for your Vonage Application will execute. That defines the logic and capabilities of the call.

On the client side, start the call as such:

Custom Data

The server call method has a parameter for custom data. This allows you to pass additional context, in a key-value format, to your answer_url webhook server.

The data will be available on the request's query made to your answer_url webhook server:

Listen For Call Events

To see updates on the state of a call, for example, to know if the other member answered or hung up the call, you should listen to call events.

To see updates on the state of the call and its members:

Reference