Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Endpoint

Hierarchy

Index

Properties

channel_ids

channel_ids: string | string[]

Ids of channels associated with this endpoint.

resource

resource: string

Identifier of the endpoint, specific to the given technology.

Optional state

state: string

Endpoints state.

technology

technology: string

Technology of the endpoint.

Methods

addListener

get

  • get(callback: (err: Error, endpoint: Endpoint) => void): void
  • get(): Promise<Endpoint>
  • Details for an endpoint.

    Parameters

    • callback: (err: Error, endpoint: Endpoint) => void
        • (err: Error, endpoint: Endpoint): void
        • Parameters

          Returns void

    Returns void

  • Details for an endpoint.

    Returns Promise<Endpoint>

list

  • list(callback: (err: Error, endpoints: Endpoint[]) => void): void
  • list(): Promise<Endpoint[]>
  • List all endpoints.

    Parameters

    • callback: (err: Error, endpoints: Endpoint[]) => void
        • (err: Error, endpoints: Endpoint[]): void
        • Parameters

          Returns void

    Returns void

  • List all endpoints.

    Returns Promise<Endpoint[]>

listByTech

  • listByTech(callback: (err: Error, endpoints: Endpoint[]) => void): void
  • listByTech(): Promise<Endpoint[]>
  • List available endoints for a given endpoint technology.

    Parameters

    • callback: (err: Error, endpoints: Endpoint[]) => void
        • (err: Error, endpoints: Endpoint[]): void
        • Parameters

          Returns void

    Returns void

  • List available endoints for a given endpoint technology.

    Returns Promise<Endpoint[]>

on

once

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

sendMessage

  • sendMessage(params: { body?: string; from: string; to: string; variables?: Containers }, callback: (err: Error) => void): void
  • sendMessage(params: { body?: string; from: string; to: string; variables?: Containers }): Promise<void>
  • Send a message to some technology URI or endpoint.

    Parameters

    • params: { body?: string; from: string; to: string; variables?: Containers }
      • Optional body?: string
      • from: string

        The endpoint resource or technology specific identity to send this message from. Valid resources are sip, pjsip, and xmpp.

      • to: string

        The endpoint resource or technology specific URI to send the message to. Valid resources are sip, pjsip, and xmpp.

      • Optional variables?: Containers
    • callback: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns void

  • Send a message to some technology URI or endpoint.

    Parameters

    • params: { body?: string; from: string; to: string; variables?: Containers }
      • Optional body?: string
      • from: string

        The endpoint resource or technology specific identity to send this message from. Valid resources are sip, pjsip, and xmpp.

      • to: string

        The endpoint resource or technology specific URI to send the message to. Valid resources are sip, pjsip, and xmpp.

      • Optional variables?: Containers

    Returns Promise<void>

sendMessageToEndpoint

  • sendMessageToEndpoint(params: { body?: string; from: string; variables?: Containers }, callback: (err: Error) => void): void
  • sendMessageToEndpoint(params: { body?: string; from: string; variables?: Containers }): Promise<void>
  • Send a message to some endpoint in a technology.

    Parameters

    • params: { body?: string; from: string; variables?: Containers }
      • Optional body?: string
      • from: string

        The endpoint resource or technology specific identity to send this message from. Valid resources are sip, pjsip, and xmpp.

      • Optional variables?: Containers
    • callback: (err: Error) => void
        • (err: Error): void
        • Parameters

          • err: Error

          Returns void

    Returns void

  • Send a message to some endpoint in a technology.

    Parameters

    • params: { body?: string; from: string; variables?: Containers }
      • Optional body?: string
      • from: string

        The endpoint resource or technology specific identity to send this message from. Valid resources are sip, pjsip, and xmpp.

      • Optional variables?: Containers

    Returns Promise<void>

Generated using TypeDoc