LiveKit JS Server SDK - v2.13.3
    Preparing search index...

    Class SipClient

    Client to access Egress APIs

    Hierarchy

    • ServiceBase
      • SipClient
    Index

    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

    • Create a new SIP outbound trunk.

      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>

      Created SIP outbound trunk

    • Create a new SIP participant.

      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>

      Created SIP participant

    • Delete a SIP dispatch rule.

      Parameters

      • sipDispatchRuleId: string

        ID of the SIP dispatch rule to delete

      Returns Promise<SIPDispatchRuleInfo>

      Deleted rule information

    • Delete a SIP trunk.

      Parameters

      • sipTrunkId: string

        ID of the SIP trunk to delete

      Returns Promise<SIPTrunkInfo>

      Deleted trunk information

    • Transfer a SIP participant to a different room.

      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

        TransferSipParticipantOptions

      Returns Promise<void>

    • Updates an existing SIP dispatch rule by replacing it entirely.

      Parameters

      • sipDispatchRuleId: string

        ID of the SIP dispatch rule to update

      • rule: SIPDispatchRuleInfo

        new SIP dispatch rule

      Returns Promise<SIPDispatchRuleInfo>

      Updated SIP dispatch rule

    • Updates an existing SIP inbound trunk by replacing it entirely.

      Parameters

      • sipTrunkId: string

        ID of the SIP inbound trunk to update

      • trunk: SIPInboundTrunkInfo

        SIP inbound trunk to update with

      Returns Promise<SIPInboundTrunkInfo>

      Updated SIP inbound trunk

    • Updates an existing SIP outbound trunk by replacing it entirely.

      Parameters

      • sipTrunkId: string

        ID of the SIP outbound trunk to update

      • trunk: SIPOutboundTrunkInfo

        SIP outbound trunk to update with

      Returns Promise<SIPOutboundTrunkInfo>

      Updated SIP outbound trunk