Commit Graph

474 Commits

Author SHA1 Message Date
Raja Subramanian
bfdbffc082 Use mapped SDP answer when using single peer connection mode. (#1255)
* Use mapped SDP answer when using single peer connection mode.

In single peer connection mode, the client does not get the
TR_ ids for tracks. That is because the transceiver is created with a
receiver when the offer is generated and a random id assigned. Once the
id is assigned, it is not updated. So, when client gets `onTrack`, the
id of the associated MediaStreamTrack is not the TR_ variety.

So, send the mapping of mid -> trackID in signalling when sending
answer. And used that on client side to find LK track ID for given mid.

Side note: Probably worth doing it for dual peer connection also when
subscriber sends offer so that we do not have to deduce it on client
side using some rules.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-15 18:18:54 +05:30
Steve Yoon
16ec4db9f6 Track agent version status (#1253)
* track agent version status

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-14 13:31:06 -04:00
Anunay Maheshwari
7baf62b9d8 feat(connectors): initial impl (#1221)
* feat(connectors): initial impl

* cleanup

* cleanup

* fix: remove affinity func

* add license headers

* split connector proto files

* generated protobuf

* cleanup

* add sdp helper to extract IP

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-13 16:00:54 +05:30
Nishad
c84cf2c280 Adding a trunk info field that will give us more details (#1250)
* Adding TrunkInfo to SipCallInfo as well as GetSIPTrunkAuthenticationResponse

* generated protobuf

* Directly using provider info instead of deprecated SipTrunkInfo

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-12 15:01:53 +05:30
Alex
0475e67b4d Only applying angled brackets to sip: uris. (#1247) 2025-10-08 14:41:24 -07:00
Tyler Barrus
5552d643f8 filter webhook (#1243)
* add webhook filter to protobuf and ensure IsAllowed checked
* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-08 15:12:15 -04:00
Théo Monnom
b1e564f85d add ChatContext proto (#1246) 2025-10-08 11:35:37 -07:00
Steve Yoon
49a136864c Add presigned post request for cloud-agents api (#1245)
* add presigned post request for cloud-agents api

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-08 14:14:54 -04:00
Paul Wells
d3262301ba add setting service (#1240)
* add setting service

* generated protobuf

* Create perfect-hounds-heal.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-05 16:41:02 -07:00
Raja Subramanian
99e83f9ba9 Marking width and height as not deprecated. (#1239)
* Marking width and height as not deprecated.

Those fields reflect the capture dimensions.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-04 22:38:10 +05:30
Dan McFaul
1c8cbd7cbb add server region to agent info and create for log handling (#1235)
* add server region to agent info and create for log handling

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-01 12:16:43 -06:00
Paul Wells
7ce7550cfa Enable recording (#1233)
* add enable recording option to agent jobs

* generated protobuf

* Create pretty-baboons-join.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-29 13:53:34 -07:00
Nishad
a4aabbeb26 Making the sip refer to compliant to the RFC (#1232)
* Making the sip refer to compliant to the RFC and adding validation/tests for the same

* avoiding regex for performance reasons
2025-09-29 18:02:23 +05:30
Ryan Gaus
0070381ef6 Add TokenSourceRequest / TokenSourceResponse messages (#1224)
* feat: add TokenSourceRequest / TokenSourceResponse

* generated protobuf

* feat: add changeset

* refactor: move TokenSourceRequest / TokenSourceResponse to new proto file

* Revert "generated protobuf"

This reverts commit 597f885122841dc697f03146857865652052f5a0.

* generated protobuf

* feat: add livekit token source file to javascript package

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-23 13:40:36 -04:00
Milos Pesic
3d859a5bf0 Extending models to support MP3 audio encoding in egress (#1220)
Extending models to support MP3 audio encoding in egress
---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-22 11:51:39 +02:00
Alex
3476f457ed Ading configurable SIP display name (#1216) 2025-09-19 09:26:24 -07:00
Paul Wells
641bae4c29 add recording store request header (#1197)
* add recording store request header

* generated protobuf

* wip

* tidy

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-15 21:31:36 -07:00
Steve Yoon
e86c60693b Add cloud-agents build identifier (#1209)
* add cloud-agents build identifier

* generated protobuf

* pre-generate tag to ensure build uniqueness

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-12 17:52:32 -04:00
Raja Subramanian
7e8f7f1f94 Suport for simulcast codec of audio. (#1207)
* Suport for simulcast codec of audio.

Note that a disable should be a mute on client side and not a track
stop to allow re-enabling the track again.

* generated protobuf

* name change

* generated protobuf

* Create young-mayflies-wash.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-12 03:15:55 +05:30
Nishad
1818f02d7b Adding utilities for phonenumber functionality (#1206)
* Adding utilities for phonenumber functionality
1. DB prefixes
2. Helper utilities for area code and number type

* Adding changeset

* Adding enum for phone number type

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-11 18:11:33 +05:30
Tobias Fried
b424bc552d chore: rename ListUpdate field del -> remove (#1203)
* chore: rename ListUpdate field del -> remove

* generated protobuf

* chore: update ListUpdate helpfers and tests

* chore: add changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-10 17:43:26 -06:00
Anunay Maheshwari
0a5e4da6af feat: add server rpc apis (#1191)
* feat: add server rpc apis

* generated protobuf

* fix: update rpc fakes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-11 04:23:38 +05:30
ac
650cd08183 updating the reporter interface to include the gateway noop reporter (#1201)
* updating the reporter inteface to include the gateway noop reporter

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-10 07:56:50 -07:00
cnderrauber
48ed047378 RPC changes for ingress proxy WHIP (#1194)
* Add rpc for ingress whip proxy

* remove track stats

* use video layer mode for skip reference ts

* compile error

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-09 13:04:43 +08:00
Steve Yoon
8df51f00de Add AgentSecretKind enum to support file-mounted secret (#1196)
* add AgentSecretKind enum to support file-mounted secret

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-08 13:56:09 -04:00
Nishad
1edfa4ba94 Removing cost info and unifying inventory/purchased phone number data… (#1190)
* Removing cost info and unifying inventory/purchased phone number data types

* generated protobuf

* adding changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-08 14:38:42 +05:30
Nishad
eab9e7d9b3 Adding a call context field to CallInfo for dynamically setting info … (#1188)
* Adding a call context field to CallInfo for dynamically setting info about the call

* generated protobuf

* Using a repeated type instead so we don't need to maintain key strings

* generated protobuf

* Adding changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-05 14:46:47 +05:30
shishirng
c9065bd9df update analytics events for sip update api (#1185)
* update analytics events for sip update api
* generated protobuf

Signed-off-by: shishir gowda <shishir@livekit.io>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-03 09:26:33 -04:00
Raja Subramanian
e46b3f58f6 Protocol error handling (#1184)
* Add request in error response

* generated protobuf

* more handlers

* generated protobuf

* label

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-02 21:25:48 +05:30
Nishad
bb6fdd78b6 Lk phone numbers update get (#1179)
* Adding get and update apis for livekit phone numbers

* generated protobuf

* Forcing a recompile

* Checking in changeset

* Using rule id instead of dispatchruleinfo struct for PurchasedPhoneNumber

* generated protobuf

* Removing unused import

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-28 08:18:30 -07:00
Denys Smirnov
c608ceafc1 Add a Name helper for SIPTransport. (#1175)
* Add a Name helper for SIPTransport.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-26 16:22:41 +03:00
lukasIO
a6f8432e6c Remove MetricsBatch from EncryptedPacketPayload (#1176)
* Remove MetricsBatch from EncryptedPacketPayload

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-26 10:52:41 +02:00
Raja Subramanian
c714707269 Protocol changes to potentially support single peer connection mode. (#1174)
* Protocol changes to potentially support single peer connection mode.

* generated protobuf

* add UseSinglePeerConnection

* generated protobuf

* sync state revert changes

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-26 13:04:47 +05:30
Nishad
b1e3bf2bca Lk phone numbers (#1146)
* Public facing api for livekit phone numbers

* more changes

* Adding internal apis

* Adding some more changes to the proto

* generated protobuf

* generated protobuf

* Updating to remove internal apis

* Adding changeset

* Clean up and changes around common fields for Phone number messages and pricing for the same

* generated protobuf

* Using a more generic costing model based on resources

* generated protobuf

* Adding a reference to SipDispatchRule in the PurchasedPhoneNumber message

* generated protobuf

* Using google protobuf timestamp and adding a struct for TokenPagination

* generated protobuf

* Using an array of numbers for the release phone number api as well

* generated protobuf

* Making spam score a double

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-19 15:54:55 -07:00
lukasIO
72e862b178 Add encryption metadata for data packets (#1127)
* override minimatch version

* Add encryption metadata for data packets

* generated protobuf

* add key index

* generated protobuf

* encrypt envelope

* generated protobuf

* more explicit encryption messages

* generated protobuf

* whitespace

* Create cold-feet-worry.md

* try fix build

* manual fix

* generated protobuf

* next id

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-18 13:04:43 +02:00
Raja Subramanian
2150d8ec31 Add webhook for aborted participant connection. (#1166)
* Add webhook for aborted participant connection.

Will be sent when the participant session is closed without participant
becoming active.

* generated protobuf

* analytics event

* generated protobuf

* Create famous-rivers-repeat.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <dz@livekit.io>
2025-08-13 10:20:55 +05:30
Steve Yoon
c174813bcc Support additional fields for agent versions (#1167)
* add deployed_at to agent_versions

* support additional agent_version fields

* generated protobuf

* fix space

* use attributes instead

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-12 15:58:00 -04:00
Raja Subramanian
e5e56f83b2 Store SDP cid in TrackInfo. (#1164)
* Store SDP cid in TrackInfo.

Only store it if different to avoid redundant info.
For example, FF uses a different stream id between AddTrack and SDP offer.

* generated protobuf

* Create cuddly-doors-relate.md

* spelling

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-12 14:43:07 +05:30
Raja Subramanian
746c9d6852 Allow clients to specify video layers mode. (#1158)
* Allow clients to specify video layers mode.

The main issue is distinguishing between one RTP streaming carry
multiple spatial layers (example SVC codecs) vs one spatial layer
(codecs that are typically simulcast). The enum names are long, but
wanted them to be clear.

* generated protobuf

* Create unlucky-birds-drive.md

* comment

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-09 11:41:03 +05:30
Raja Subramanian
82ec7d7473 Support per simulcast codec layers. (#1157)
* Support per simulcast codec layers.

* generated protobuf

* Create dull-trainers-obey.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-08 12:33:28 +05:30
Raja Subramanian
1d6123ccc9 Include SyncState in join request (#1154)
* Include SyncState in join request

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-08 00:29:25 +05:30
Raja Subramanian
ccbae8154e Wrapped join request to indicate compression. (#1153)
* Wrapped join request to indicate compression.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-07 16:28:28 +05:30
Raja Subramanian
7f6468a6a0 join request as proto message (#1151)
* join request as proto message

* generated protobuf

* add join_publish

* generated protobuf

* comments

* generated protobuf

* simulcast not yet deprecated

* generated protobuf

* remove join_publish

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-07 11:00:07 +05:30
Raja Subramanian
1edabe8e86 Delete v2 signalling (#1150)
* Delete v2 signalling

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-06 08:46:41 +05:30
Denys Smirnov
f44a41e4fd Go SDK support for stream data messages. (#1148) 2025-07-29 20:21:10 +03:00
Denys Smirnov
1a91492043 Go SDK support for chat messages. (#1147) 2025-07-29 15:52:16 +03:00
Denys Smirnov
8cf93fe6ac Allow adding, removing items and clearing list fields. (#1142) 2025-07-24 12:37:41 +03:00
Raja Subramanian
34c7a0eb63 More v2 stuff (#1141)
* More v2 stuff

- Adding `Trickle` to client -> server message. There should not be any
  tricklw from server -> client in v2. So, not adding it. Will add if
  needed later.
- Some utils to parse envelopes as we are moving in the direction of
  having an envelope of messages in the initial connect request to keep
  it modular. May change again later, but today's state is this.
- change relay signal to pass wire message back and forth.

* generated protobuf

* add utils

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-24 10:02:30 +05:30
Raja Subramanian
93319bf9e3 Filling out some messages that are unlikely to change in v2. (#1137)
* Filling out some messages that are unlikely to change in v2.

* generated protobuf

* comment

* mage

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-21 12:04:19 +05:30
Steve Yoon
5934235d53 add restart api to cloud-agents (#1135)
* add restart api to cloud-agents

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-18 14:03:28 -04:00