Commit Graph

722 Commits

Author SHA1 Message Date
github-actions[bot]
04372ebead Version Packages (#708)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.16.0 github.com/livekit/protocol@1.16.0 v1.16.0
2024-05-13 12:06:58 +02:00
Raja Subramanian
30cee625bf Adding a simulation option for leave request. (#713)
* Adding a simulation option for leave request.

@lukasIO I was thinking of making the simulation option
just a `LeaveRequest`. And when simulating, client side
can just set `Action` field of `LeaveRequest`.
But, decided against it as I did not use case for it
and also wanted to keep it simple/specific.

Let me know if I should change that to a generic `LeaveRequest`.
If doing generic `LeaveRequest`, server behaviour would be
1. `Action = DISCONNECT`: server will close the participant and send a
   `LeaveRequest` with `Action = DISCONNECT`.
2. `Action = RESUME`, server will send `LeaveRequest` with `Action = RESUME`
   and it will not include self region in `RegionSettings`.
3. `Action = RECONNECT`, server will send `LeaveRequest` with `Action = RECONNECT`
   and it will not include self region in `RegionSettings`.

As the current simulation is only for full reconnect, it will behave
like #3 above.

Also, this option will be supported in cloud.

Please let me know if I should change this or just leave it as a
boolean.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-13 00:06:19 +05:30
Benjamin Pracht
93a26f478d Add RedactAutoEncodedOutput to support redacting auto egress types (#712)
Also redact image outputs, and support AliOSS uploads for auto egress

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-10 09:56:06 -07:00
Benjamin Pracht
dd69a5f011 Move egress request redacting routines to protocol (#711) 2024-05-09 15:26:22 -07:00
Paul Wells
e079b2245f avoid allocation from timeout queue iterator (#710) 2024-05-09 02:37:16 -07:00
Denys Smirnov
38423424ed Allow number filtering on Dispatch Rules (#707)
Allow inbound number filtering on  SIP Dispatch Rules. It works similar to Trunks, where rules without a number filter are grouped together and take less priority than number-specific rules.

While at it, simplify the rule evaluation.

Previously it was doing some hand-crafted checks for evaluation path, that matched the validation path. Same double logic existed for priorities as well.

Now the validation is always called from evaluation, thus sharing the logic. And rule selection is simplified by just picking the first one after priority filtering.
2024-05-07 19:23:35 +03:00
Paul Wells
72c0789f38 allow setting min log level for logger (#705)
* allow setting min log level for logger

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-06 22:22:14 -07:00
github-actions[bot]
5f0256e10a Version Packages (#700)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.15.0 github.com/livekit/protocol@1.15.0 v1.15.0
2024-05-02 19:20:07 +02:00
lukasIO
f547128159 Add changeset for #703 (#704) 2024-05-02 18:35:25 +02:00
Denys Smirnov
e0c63d7698 Add Twirp interceptor that prints curl commands (#702)
* Add Twirp interceptor that prints curl commands.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-01 22:08:30 +03:00
Théo Monnom
c286435a2d move language to TranscriptionSegment (#703) 2024-05-01 18:52:16 +02:00
Denys Smirnov
151d757a97 Expose Logger constructor for Zap (#701)
* Expose Logger constructor for Zap.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-01 13:27:48 +03:00
Denys Smirnov
e7962f4444 Pass additional metadata for SIP. (#696) 2024-04-26 13:44:03 +03:00
lukasIO
67ad5a7734 Convert changesets action output to JSON before accessing it (#699) 2024-04-26 10:38:55 +02:00
github-actions[bot]
17f16c6d15 Protocol release 1.14.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.14.0 github.com/livekit/protocol@1.14.0 v1.14.0
2024-04-26 09:21:23 +02:00
Raja Subramanian
fd19ad24b8 Deprecate UpdateVideoLayers. (#698)
* Deprecate UpdateVideoLayers.

Believe this was never used.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-26 12:00:20 +05:30
Raja Subramanian
2d50a79222 Add audio features to TrackInfo. (#697)
* Add audio features to TrackInfo.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-26 10:12:38 +05:30
Benjamin Pracht
6d5a8047e6 WHIP protocol change (#680)
This PR adds an optional "enable_transcoding" entry to the ingress APIs and deprecates the bypass_transcoding entry. This is in preparation of disabling "enable_transcoding" by default for WHIP.
2024-04-25 19:35:05 +02:00
dependabot[bot]
bad3fc9684 Bump golang.org/x/net from 0.21.0 to 0.23.0 (#695)
* Bump golang.org/x/net from 0.21.0 to 0.23.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* update to go 1.23

* go 1.22

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mathew Kamkar <578302+matkam@users.noreply.github.com>
2024-04-22 10:36:05 -07:00
Paul Wells
524ca6a3a3 reduce allocations from guids (#692)
* reduce allocations from guids

* fix

* fix

* less lock thrashing
2024-04-21 13:07:37 -07:00
Paul Wells
e418881086 refactor pion prefix matching (#691) 2024-04-20 12:52:47 -07:00
Denys Smirnov
da776daae7 Add optional name for SIP participant. (#687) 2024-04-19 15:02:57 +03:00
Paul Wells
91a1cc854d lazily initialize pion loggers (#689)
* lazily initialize pion loggers

* cleanup
2024-04-18 19:00:32 -07:00
David Zhao
0bc8068edc Added changeset for Transcriptions (#686) 2024-04-18 13:01:38 -07:00
Benjamin Pracht
2bce16cdcc Transcription/Timed metadata protocol (#679)
---------

Co-authored-by: David Zhao <dz@livekit.io>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-18 18:27:33 +02:00
Lukas Herman
b7e396271d fix: rate limit update and slack unit (#685)
* add an atomic update to rate and slack

* fix: slack should be int instead of Duration

* add documentation to rateLimit and slack
2024-04-17 13:22:27 -04:00
David Colburn
cb008da1d6 add directOutput interface (#681) 2024-04-16 10:29:53 -07:00
Benjamin Pracht
2d633a51d8 Add updated_at field to ingress (#684)
* Add updated_at field to ingress

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-16 17:43:43 +02:00
David Colburn
e746785292 fix rpc package (#678)
* fix rpc package

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-11 14:27:17 -07:00
github-actions[bot]
ef65d2b4c8 Version Packages (#669)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.13.0 github.com/livekit/protocol@1.13.0
2024-04-11 00:07:27 -07:00
Paul Wells
b6a979d8cf add iterator to timeseries (#677)
* add iterator to timeseries

* cleanup

* cleanup
2024-04-09 23:02:26 -07:00
Lukas Herman
c69c1b0580 add Clock interface and LeakyBucket (#675)
* add Clock interface and LeakyBucket

* add SimulatedClock

* removed self reference and format

* renamed t to lb

* replaced sync/atomic with uber/atomic

* add source to the license comment

* favor value over pointer receiver for SystemClock

* use atomic.Int value

* use mutex based instead

* add source

* update comments and hide mutex

* add SetRateLimitOnTheFly

* fix: source in rate_test

* skip unstable slack tests on Github
2024-04-09 11:32:35 -04:00
Paul Wells
fec2972501 support curried psrpc metric labels (#676) 2024-04-09 00:26:52 -07:00
renovate[bot]
14e8de50d5 chore(deps): update dependency @bufbuild/protoc-gen-es to v1.8.0 (#661)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-04 23:22:11 +02:00
renovate[bot]
0519f4b851 fix(deps): update dependency @bufbuild/protobuf to v1.8.0 (#662)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-04 18:50:58 +02:00
Théo Monnom
bc6c7ffd71 agents protocol proposal (#595)
* simulate-job

* generated protobuf

* wip

* job_cost

* Update livekit_agent.proto

* generated protobuf

* Update livekit_agent.proto

* generated protobuf

* Update livekit_agent.proto

* Update livekit_agent.proto

* Update livekit_agent.proto

* generated protobuf

* Update livekit_agent.proto

* renamed to pong

Co-authored-by: David Zhao <dz@livekit.io>

* Update livekit_agent.proto

* Update livekit_agent.proto

* generated protobuf

* remove job_cost & ParticipantPermission

* generated protobuf

* Update livekit_agent.proto

* generated protobuf

* wip

* generated protobuf

* generated protobuf

* Update livekit_agent.proto

* generated protobuf

* generated protobuf

* handler namespace

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <dz@livekit.io>
Co-authored-by: David Colburn <xero73@gmail.com>
2024-04-03 22:49:52 +02:00
Raja Subramanian
fc68e8d82b Add start/end time to analytics stream info (#673)
* Add start/end time to analytics stream info

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-03 12:02:58 +05:30
David Zhao
766ababa37 Include projectID in node snapshots (#672)
* Include projectID in node snapshots

* generated protobuf

* removed project_id from event & stat

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-31 13:31:40 -07:00
Denys Smirnov
93ff4a23a3 Add and option to play ringtone for SIP outbound calls. (#671) 2024-03-29 22:54:06 +02:00
Paul Wells
38f2e3216c add hedge retry helper (#670)
* add hedge retry helper

* cleanup

* fix
2024-03-28 09:48:12 -07:00
Denys Smirnov
e2c0cf8043 Support for converting Logger into slog.Handler. (#668)
This change allows to take an existing Logger and convert it into slog.Handler.

New ToSlogHandler function will check if the Logger implementation is a known one (Zap or Logr) and will convert it with package-specific functions.
2024-03-27 01:23:19 +02:00
Paul Wells
a512748415 simplify key types (#667) 2024-03-25 10:36:45 -07:00
shishirng
a2f6423fd1 Analytics client meta update (#665)
* add optional client meta fields
* generated protobuf

Signed-off-by: shishir gowda <shishir@livekit.io>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-22 14:53:01 -04:00
Paul Wells
9b0ad21a6f export client params options helper (#666) 2024-03-22 11:11:10 -07:00
Paul Wells
0d9caadf76 simplify timed version (#664) 2024-03-21 02:45:38 -07:00
github-actions[bot]
62e1809e72 Version Packages (#654)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.12.0 github.com/livekit/protocol@1.12.0 v1.12.0
2024-03-19 13:28:20 +01:00
lukasIO
981fefbbe9 Add signal requests for local track updates (#651)
* Add signal requests for local track updates

* changeset

* fix indices

* fix field naming

* generated protobuf

* address comment

* generated protobuf

* Remove video features for now

* generated protobuf

* whitespace

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-19 13:26:46 +01:00
Denys Smirnov
44e9dc34b4 Allow sending DTMF when creating SIP participant (#658)
* Allow sending DTMF when creating SIP participant.

* generated protobuf

* Add changeset.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-14 22:39:25 +02:00
Denys Smirnov
4d22b4ce36 Move CPU stats to a separate hwstats package. Fixes #659. (#660) 2024-03-14 22:24:40 +02:00
Paul Wells
feb177f216 call config observers synchronously (#657)
* call config observers synchronously

* cleanup
2024-03-13 21:34:20 -07:00