Client to access Egress APIs

Hierarchy

  • ServiceBase
    • SipClient

Constructors

  • Parameters

    • host: string

      hostname including protocol. i.e. 'https://.livekit.cloud'

    • OptionalapiKey: string

      API Key, can be set in env var LIVEKIT_API_KEY

    • Optionalsecret: string

      API Secret, can be set in env var LIVEKIT_API_SECRET

    Returns SipClient

Methods

  • Parameters

    • name: string

      human-readable name of the trunk

    • address: string

      hostname and port of the SIP server to dial

    • numbers: string[]

      phone numbers of the trunk

    • Optionalopts: CreateSipOutboundTrunkOptions

      CreateSipTrunkOptions

    Returns Promise<SIPOutboundTrunkInfo>

  • Parameters

    • sipTrunkId: string

      sip trunk to use for the call

    • number: string

      number to dial

    • roomName: string

      room to attach the call to

    • Optionalopts: CreateSipParticipantOptions

      CreateSipParticipantOptions

    Returns Promise<SIPParticipantInfo>

  • Parameters

    • roomName: string

      room the SIP participant to transfer is connectd to

    • participantIdentity: string

      identity of the SIP participant to transfer

    • transferTo: string

      SIP URL to transfer the participant to

    • Optionalopts: TransferSipParticipantOptions

    Returns Promise<void>