Make a Call

This guide covers how to make a call with the Vonage Client SDK. Before you begin, make sure you added the SDK to your app and (Android, iOS, JS).

NOTE: On iOS it is expected that you use CallKit for incoming and outgoing calls. Please follow the Outbound Calls Using iOS CallKit blog post.

Making a Call

The serverCall method allows you to initiate a voice call using the feature rich Voice API. When this method is called, the answer_url webhook that is configured for your Vonage Application will execute. That defines the logic and capabilities of the call.

Custom Data

Including your own custom data allows you to pass context, in a key-value format, to your answer_url webhook server. If you supply a value with the to key, it will populate the top level to in the query you make to your webhook server. Other data will be under the custom_data object.

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 leg status events.

To see updates on the status of the call:

Reference