Skip to main content

Overview

CometChat’s Web Call SDK provides a comprehensive way to integrate call logs into your application, enhancing your user experience by allowing users to effortlessly keep track of their communication history. Call logs provide crucial information such as call duration, participants, and more. This feature not only allows users to review their past interactions but it also serves as an effective tool to revisit important conversation details. With the flexibility of fetching call logs, filtering them according to specific parameters, and obtaining detailed information of individual calls, application developers can use this feature to build a more robust and interactive communication framework. In the following sections, we will guide you through the process of working with call logs, offering a deeper insight into how to optimally use this feature in your Web application.

Fetching Call Logs

To fetch all call logs in your application, you should use the CallLogRequestBuilder, This builder allows you to customize the call logs fetching process according to your needs.
CallLogRequestBuilder has the following settings available.

Fetch Next

The**fetchNext()**method retrieves the next set of call logs.

Fetch Previous

The**fetchPrevious()**method retrieves the previous set of call logs.

Get Call Details

To retrieve the specific details of a call, use the**getCallDetails()**method. This method requires the Auth token of the logged-in user and the session ID along with a callback listener.
Note: Replace**"SESSION_ID"**with the ID of the session you are interested in.