Optionalconfig: Partial<LiveKitServerConfig>Explicit credentials; omitted fields fall back to the LIVEKIT_* environment variables.
Optionalsip: SipClientLikeInjectable SIP client (tests); defaults to a real SipClient, built on first use.
Optionalrooms: RoomServiceClientLikeInjectable room-service client (tests); defaults to a real RoomServiceClient, built on first use.
Whether the LiveKit credentials needed to call the API are present.
Calls a number and adds the call to the room. By default the request blocks until the call is answered, so a resolved promise means the other side picked up; a throw means it did not (busy, no answer, refused).
Makes sure calls to Numbers land in a new room named <RoomPrefix>…: finds (or creates) the inbound trunk for
the numbers and an individual dispatch rule with the prefix on it. Safe to run on every start: it only creates
what is missing.
Whether a participant with this identity is in the room with an established connection.
The inbound trunks LiveKit has, optionally only those that include one of the numbers.
Optionalnumbers: string[]The outbound trunks LiveKit has.
The participants currently in a room. A room that does not exist (nobody has joined) has none.
Whether the outbound trunk id exists on this LiveKit deployment.
Removes a participant from a room (hangs up a phone leg).
SIP and presence operations against a LiveKit deployment.