Hierarchy

  • EventEmitter
    • AsteriskManagerInterface

Constructors

Accessors

  • get authenticated(): boolean
  • Returns if the connection is authenticated

    Returns boolean

Methods

  • Closes the connection to the server

    Returns Promise<void>

  • Attempts to log into the server over the AMI connection

    Parameters

    • user: string = ...
    • password: string = ...

    Returns Promise<boolean>

  • Checks if the specified module is loaded on the server

    Parameters

    • module: string

    Returns Promise<boolean>

  • Parameters

    • event: "close"
    • listener: ((hadError?) => void)
        • (hadError?): void
        • Parameters

          • Optional hadError: boolean

          Returns void

    Returns this

  • Parameters

    • event: "error"
    • listener: ((error) => void)
        • (error): void
        • Parameters

          • error: Error

          Returns void

    Returns this

  • Parameters

    • event: "connect"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns this

  • Type Parameters

    • T = any

    Parameters

    • event: "response"
    • listener: ((payload) => void)
        • (payload): void
        • Parameters

          • payload: T

          Returns void

    Returns this

  • Type Parameters

    • T = any

    Parameters

    • event: "response"
    • listener: ((payload) => void)
        • (payload): void
        • Parameters

          • payload: T

          Returns void

    Returns this

  • Pings the AMI connection (keepalive)

    Returns Promise<boolean>