Call logs provide a history of calls made through your application. You can retrieve call logs using the CometChat Chat SDK’s call log APIs.Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Call logs are managed by the CometChat Chat SDK, not the Calls SDK. Ensure you have the Chat SDK integrated to access call history.
Prerequisites
To use call logs, you need:- CometChat Chat SDK integrated (
@cometchat/chat-sdk-react-native) - User authenticated with the Chat SDK
Retrieve Call Logs
Use theCallLogRequestBuilder from the Chat SDK to fetch call logs:
CallLogRequestBuilder Options
| Method | Type | Description |
|---|---|---|
setLimit(limit) | number | Maximum number of logs to fetch (default: 30, max: 100) |
setCallStatus(status) | string | Filter by call status |
setCallType(type) | string | Filter by call type (audio or video) |
setCallCategory(category) | string | Filter by category (call for direct calls) |
setAuthToken(token) | string | Auth token for the request |
Call Status Values
| Status | Description |
|---|---|
all | All call logs |
initiated | Calls that were initiated |
ongoing | Currently active calls |
ended | Completed calls |
cancelled | Calls cancelled by the initiator |
rejected | Calls rejected by the receiver |
busy | Calls where receiver was busy |
unanswered | Calls that weren’t answered |
Call Log Object
Each call log contains:| Property | Type | Description |
|---|---|---|
sessionId | string | Unique session identifier |
initiator | User | User who initiated the call |
receiver | User/Group | Call recipient |
callStatus | string | Final status of the call |
callType | string | audio or video |
initiatedAt | number | Timestamp when call was initiated |
joinedAt | number | Timestamp when call was joined |
endedAt | number | Timestamp when call ended |
duration | number | Call duration in seconds |
participants | array | List of participants |
recordings | array | List of recordings (if any) |