Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Client

Hierarchy

Index

Properties

applications

applications: Applications

Available Applications resources.

asterisk

asterisk: Asterisk

Available Asterisk resource.

bridges

bridges: Bridges

Available Bridges resources.

channels

channels: Channels

Available Channels resources.

deviceStates

deviceStates: DeviceStates

Available DeviceStates resources.

endpoints

endpoints: Endpoints

Available Endpoints resources.

events

events: Events

Available Events resources.

mailboxes

mailboxes: Mailboxes

Available Mailboxes resources.

playbacks

playbacks: Playbacks

Available Playbacks resources.

recordings

recordings: Recordings

Available Recordings resources.

sounds

sounds: Sounds

Available Sounds resources.

Methods

Application

  • Creates a new Application instance.

    Parameters

    Returns Application

Asterisk

  • Creates a new Asterisk instance.

    Parameters

    Returns Asterisk

Bridge

  • Creates a new Bridge instance.

    Parameters

    Returns Bridge

Channel

  • Creates a new Channel instance.

    Parameters

    Returns Channel

DeviceState

  • Creates a new DeviceState instance.

    Parameters

    Returns DeviceState

Endpoint

  • Creates a new Endpoint instance.

    Parameters

    Returns Endpoint

LiveRecording

  • Creates a new LiveRecording instance.

    Parameters

    Returns LiveRecording

Mailbox

  • Creates a new Mailbox instance.

    Parameters

    Returns Mailbox

Playback

  • Creates a new Playback instance.

    Parameters

    Returns Playback

Sound

  • Creates a new Sound instance.

    Parameters

    Returns Sound

StoredRecording

  • Creates a new StoredRecording instance.

    Parameters

    Returns StoredRecording

addListener

on

once

ping

  • ping(): void
  • Pings the WebSocket.

    Returns void

removeAllListeners

removeListener

  • removeListener(event: AnyEventType, handler: (...args: any[]) => void): void
  • Removes the event listener for the specified event type.

    Parameters

    • event: AnyEventType

      The event type.

    • handler: (...args: any[]) => void

      The event listener function.

        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

start

  • start(apps: string | string[], subscribeAll: boolean, callback?: (err: Error, ...args: any[]) => void): void
  • start(apps: string | string[], callback?: (err: Error, ...args: any[]) => void): void
  • Creates the WebSocket connection, subscribing to the given apps.

    Parameters

    • apps: string | string[]

      Name or array of names of the applications to be started.

    • subscribeAll: boolean

      Subscribe to all Asterisk events (true/false).

    • Optional callback: (err: Error, ...args: any[]) => void
        • (err: Error, ...args: any[]): void
        • Parameters

          • err: Error
          • Rest ...args: any[]

          Returns void

    Returns void

  • Creates the WebSocket connection, subscribing to the given apps.

    Parameters

    • apps: string | string[]

      Name or array of names of the applications to be started.

    • Optional callback: (err: Error, ...args: any[]) => void
        • (err: Error, ...args: any[]): void
        • Parameters

          • err: Error
          • Rest ...args: any[]

          Returns void

    Returns void

stop

  • stop(): void
  • Closes the WebSocket connection.

    Returns void

Generated using TypeDoc