Represents an interface for managing a telephony line.

Hierarchy

  • Eventing<LineEventTypes>
    • ILine

Properties

userId: string

The unique identifier of the user associated with the line.

clientDeviceUri: string

The URI of the client device associated with the line.

lineId: string

The unique identifier of the line.

mobiusDeviceId?: string

The optional Mobius device identifier associated with the line.

phoneNumber?: string

The phone number associated with the line.

extension?: string

The extension number associated with the line.

sipAddresses?: string[]

An array of SIP addresses associated with the line.

voicemail?: string

The voicemail number associated with the line.

lastSeen?: string

The timestamp when the line was last seen.

keepaliveInterval?: number

The interval for sending keep-alive messages for the line.

callKeepaliveInterval?: number

The interval for sending call keep-alive messages for the line.

rehomingIntervalMin?: number

The minimum rehoming interval for the line.

rehomingIntervalMax?: number

The maximum rehoming interval for the line.

voicePortalNumber?: number

The voice portal number associated with the line.

voicePortalExtension?: number

The voice portal extension associated with the line.

registration: IRegistration

The registration information for the line as IRegistration.

Methods

  • Registers the line.

    Returns void

  • Deregisters the line.

    Returns void

  • Retrieves the active Mobius server URL associated with the line.

    Returns string

  • Retrieves the registration status of the line as MobiusStatus.

    Returns RegistrationStatus

  • Retrieves the device identifier associated with the line as MobiusDeviceId, or undefined if no device is associated.

    Returns undefined | string

  • Initiates a call to the specified destination.

    Example

    const callDetails : CallDetails = {type: 'uri', address: 'example@webex.com'};
    const callObj: ICall = line.makeCall(callDetails);

    Parameters

    • Optional dest: CallDetails

      The call details including destination information.

    Returns undefined | ICall

  • Retrieves a call object based on the provided correlation identifier.

    Example

    const callObj: ICall = line.getCall(correlationId);
    

    Parameters

    • correlationId: string

      The correlation identifier of the call.

    Returns ICall

Events

  • Type Parameters

    • E extends keyof LineEventTypes

    Parameters

    • event: E

      Event that is going ot be emitted.

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

      Parameters that are emitted with the event.

    Returns boolean

  • .

    Type Parameters

    • E extends keyof LineEventTypes

    Parameters

    • event: E

      Event to listen to.

    • listener: LineEventTypes[E]

      Callback for event.

    Returns ILine

  • .

    Type Parameters

    • E extends keyof LineEventTypes

    Parameters

    • event: E

      Event to remove listener on.

    • listener: LineEventTypes[E]

      Callback for event.

    Returns ILine