The Voicemail module is designed to simplify voicemail-related operations by offering a set of APIs.

The following code snippet demonstrates how to create an instance of Voicemail using a webex instance and a logger:

Example:

const voicemailInstance = createVoicemailClient(webex, logger);

Hierarchy

  • Eventing<VoicemailEventTypes>
    • Voicemail

Implements

Events

  • Type Parameters

    • E extends CB_VOICEMESSAGE_CONTENT_GET

    Parameters

    • event: E

      Event that is going ot be emitted.

    • Rest ...args: Parameters<VoicemailEventTypes[E]>

      Parameters that are emitted with the event.

    Returns boolean

  • .

    Type Parameters

    • E extends CB_VOICEMESSAGE_CONTENT_GET

    Parameters

    • event: E

      Event to listen to.

    • listener: VoicemailEventTypes[E]

      Callback for event.

    Returns Voicemail

  • .

    Type Parameters

    • E extends CB_VOICEMESSAGE_CONTENT_GET

    Parameters

    • event: E

      Event to remove listener on.

    • listener: VoicemailEventTypes[E]

      Callback for event.

    Returns Voicemail

Properties

logger: LoggerInterface

Methods

  • Retrieves a list of voicemails with optional pagination and sorting options.

    Parameters

    • offset: number

      Number of records to skip.

    • offsetLimit: number

      The limit on the number of voicemails to retrieve from the offset.

    • sort: SORT

      Sort voicemail list (ASC | DESC).

    • Optional refresh: boolean

      Set to true to force a refresh of voicemail data from backend (optional).

    Returns Promise<VoicemailResponseEvent>

  • Resolve the Contact from userId or display name.

    Parameters

    • callingPartyInfo: CallingPartyInfo

      Calling Party Info.

    Returns Promise<null | DisplayInformation>