Home Reference Source
import {CallLog} from '@quobis/sippojs'
public class | source

CallLog

Manages the contacts and groups which they belongs to CallLogManager instance is obtained by calling the {Session#getCallLogManager} method

Member Summary

Public Members
public

emitter: EventEmitter

Emits the next possible events:

  • "update" event every time an existing entry is updated
  • "create" event every time a new entry is prepended
  • "fetch" event every time more entries are appended
public

Method Summary

Public Methods
public

fetch(limit: number): Promise

Fetch more callLog entries

public

Retrieves a CallLog by given its ID

public

Obtains the list with the available CallLog items

Public Members

public emitter: EventEmitter source

Emits the next possible events:

  • "update" event every time an existing entry is updated
  • "create" event every time a new entry is prepended
  • "fetch" event every time more entries are appended

public lastRecoveredTimestamp: * source

Public Methods

public fetch(limit: number): Promise source

Fetch more callLog entries

Params:

NameTypeAttributeDescription
limit number
  • optional
  • default: 20

The number of new entries to be fetched at most

Return:

Promise

When resolved, the update was completed

public getById(id: String): CallLog source

Retrieves a CallLog by given its ID

Params:

NameTypeAttributeDescription
id String

Return:

CallLog

public getEntries(): CallLog[] source

Obtains the list with the available CallLog items

Return:

CallLog[]