Commit Graph

989 Commits

Author SHA1 Message Date
github-actions[bot]
f517a07061 Version Packages (#985)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.35.0 github.com/livekit/protocol@1.35.0 v1.35.0
2025-03-18 19:19:14 +08:00
cnderrauber
2d5bce98ac Changeset for ForwardingParticipant change (#1011)
* Changeset for ForwardingParticipant change

https://github.com/livekit/protocol/pull/1008

* fix new type
2025-03-18 16:30:22 +08:00
David Colburn
549a29a812 downgrade gstreamer property assertions (#1009)
* downgrade gstreamer property assertions

* simplify
2025-03-12 00:10:09 -04:00
cnderrauber
368c3d6198 ForwardParticipant changes (#1008)
* ForwardParticipant changes

remove stop flag in the request
add new `forwarded` participant type

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-12 12:07:30 +08:00
Raja Subramanian
4035de5f7f YAML tags for config. (#1007)
Sorry folks, not having a good day. Making a 4th PR for something dead
simple. Apologies.
2025-03-11 13:42:27 +05:30
Raja Subramanian
56615aa7e6 Move WebHookConfig to use location (#1006)
* Move WebHookConfig to use location

* generate

* generated protobuf

* make URLNotifier config

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-11 12:34:00 +05:30
Raja Subramanian
d04fdeaed6 Add a default config for ReousrceURLNotifierConfig. (#1005)
* Add a default config for ReousrceURLNotifierConfig.

Forgot to add that in my previous PR :-()

* just set defaults in config directly
2025-03-11 11:28:38 +05:30
Raja Subramanian
9b34314a3d Make ResourceURLNotifier configurable. (#1004)
* Make ResourceURLNotifier configurable.

Also change default max age to 10s.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-11 11:08:00 +05:30
David Colburn
39426dfb28 downgrade all turn, ice, and sdk errors (#1003) 2025-03-10 00:15:19 -04:00
cnderrauber
03867f6036 Add ForwardParticipant method to RoomService (#1002)
* Add ForwardParticipant method to RoomService

* faked rpc client

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-10 11:38:36 +08:00
Raja Subramanian
e586a23f4e Support filtering webhook events. (#1001)
* Support filtering webhook events.

* test

* set filter
2025-03-07 23:45:33 +05:30
Raja Subramanian
4102568c88 Per resource webhook queue. (#1000)
* Per resource webhook queue.

With a worker based approach, an event on a resource (like a room) not
being handled could affect other resources (other rooms or ingress or
egress).

To prevent that, do a per resource queue with two kinds of limits
- age of event: when queuing, if the event at the front of the queue
  exceeds a certain limit (default: 5 seconds), the event is dropped
- depth of queue: drop event if the number of queued events exceeds some
  level (default: 200)

To reap the per resource queue, specific end events are tracked and the
resource is added to the reap queue and reaped after a configurable
timeout (default: 5 min). This is to ensure that events happening just
after end event (for example: participant_left happening after
room_finished) are handled without re-creating a new resource.

Also, deprecating `num_dropped` from proto.

Some other bits of notes/challenges:
- Keeping the old URL notifier also. Also, the default notifier is that.
  Can change to the new one before merging this PR if this approach
  looks good.
- Using string compares of event name to detect end. Not great.
- Needs a sweeper to reap the resource queue. I think 5 min default
  timeout to reap should be okay, but maybe there are things that can
  cause re-creation of a resource queue after reaping and those could
  leak? Needs more analysis.
- Storing `context.Context` in resource queue so that it can be used
  during posting to webhook from resource queue go routine. Storing that
  is not great, but we need it for analytics key.

* generated protobuf

* missed files

* generated protobuf

* fix test in data race

* generate

* generated protobuf

* paul feedback

* fixes

* race

* more Paul feedback

* make resource notifier the default

* generated protobuf

* stop

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-07 22:39:59 +05:30
David Colburn
7d8d588f75 simplify again (#997) 2025-03-03 20:22:49 -05:00
David Colburn
c4a3f3cef1 Split logs combined by stdout, support dev (#996)
* split lines

* add non-json support

* s -> line
2025-03-03 05:41:55 -05:00
David Colburn
b007d0efe4 remove nil key (#994)
* remove nil key

* also ignore audio template not mapped warnings
2025-03-02 21:43:58 -05:00
Denys Smirnov
e35a55f148 Move SIP call dispatch info into a separate type. (#989) 2025-03-01 14:47:08 +02:00
renovate[bot]
9d0ad8a239 Update module github.com/go-jose/go-jose/v3 to v3.0.4 [SECURITY] (#992)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-01 02:54:40 -06:00
shishirng
5f4ba74900 deprecate older timestamp fields and add new ones (#993)
* deprecate older timestamp fields and add new ones

Signed-off-by: shishir gowda <shishir@livekit.io>

* generated protobuf

---------

Signed-off-by: shishir gowda <shishir@livekit.io>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-27 22:22:10 +02:00
Benjamin Pracht
e8f463c43a Allow selecting the base logger used by the OverrideLogger (#991) 2025-02-27 09:57:32 -08:00
Benjamin Pracht
9a2ec49faa Move media related logging utilities from egress to protocol (#990) 2025-02-26 13:11:51 -08:00
Denys Smirnov
715433bcb8 Add SIP hostname to auth request as well. (#988) 2025-02-25 19:20:22 +02:00
Denys Smirnov
d8a31f2b72 Handle SIP hostname in address filters. Expose attribute. (#987) 2025-02-25 17:12:07 +02:00
Denys Smirnov
f18a2d1107 Expose and improve SIP number normalization. (#986) 2025-02-25 12:37:42 +02:00
Denys Smirnov
8819517840 More analytics fields for SIPCallInfo. (#984) 2025-02-24 12:41:14 +02:00
renovate[bot]
e61742edcb Update dependency @changesets/cli to v2.28.1 (#980)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-23 01:16:17 -06:00
github-actions[bot]
02ee5e6947 Version Packages (#967)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.34.0 github.com/livekit/protocol@1.34.0 v1.34.0
2025-02-20 19:39:03 -06:00
Denys Smirnov
56028e9bba Expose hooks for SIP trunk and rule matching. (#983) 2025-02-20 13:51:07 +02:00
Denys Smirnov
0a12e2c4d7 Set default identity for CreateSIPParticipant. (#982) 2025-02-18 16:12:41 +02:00
Denys Smirnov
bfe8101478 Fix iteration over empty and unsorted records. (#971) 2025-02-18 12:07:13 +02:00
Paul Wells
1a019aab5b add participant job type (#981)
* add participant job type

* internal rpc

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-18 00:33:17 -08:00
Raja Subramanian
9b6e5d703f Webhook analytics event. (#979)
* Webhook analytics event.

NOTE: Need a frostbyte73/core PR to merge and tag a release
PR pending: https://github.com/frostbyte73/core/pull/5

* sync submit

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-13 10:21:17 +05:30
David Colburn
82dadcf607 Egress audio mixing options (#978)
* audio mixing options

* generated protobuf

* remove multi

* move audio mixing

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-12 12:56:45 -05:00
Paul Wells
c8871c4e1c add client observability middleware helper (#970) 2025-02-07 14:33:56 -08:00
Denys Smirnov
81a3dfbd2a Remove SIP outbound number normalization for Telnyx. (#969) 2025-02-07 12:57:56 +02:00
Denys Smirnov
9ce0387a72 Fix hostname validation for a new type. (#968) 2025-02-07 12:26:46 +02:00
Raja Subramanian
07904738df Proto for sending API call details to telemetry. (#964)
* Proto for sending API call details to telemetry.

* generated protobuf

* Create dry-camels-tie.md

* Add project_id

* generated protobuf

* top level fields

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-07 15:08:07 +05:30
Denys Smirnov
fdfc6fd6bc Allow passing all SIP trunk options in CreateSIPParticipant. (#961)
* Allow passing all SIP trunk options in CreateSIPParticipant.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-07 11:21:18 +02:00
github-actions[bot]
254e040b44 Version Packages (#957)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.33.0 github.com/livekit/protocol@1.33.0 v1.33.0
2025-02-07 13:20:18 +08:00
renovate[bot]
f622cb15cd Update go deps (#888)
* Update go deps

Generated by renovateBot

* go 1.22

* go 1.22.10

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <dz@livekit.io>
2025-02-06 18:13:42 -06:00
David Zhao
906f154146 fix version to Go 1.22, reduce renovate frequency (#966) 2025-02-06 17:20:56 -06:00
renovate[bot]
fdd5408773 Update dependency typescript to v5.7.3 (#939)
* Update dependency typescript to v5.7.3

Generated by renovateBot

* generated protobuf

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-06 17:11:38 -06:00
Denys Smirnov
331f97dbf4 Add Twirp options to preserve error details and client timeouts (#963)
* Add Twirp client/server options to preserve gRPC error details.

* Pass Twirp client timeouts to the server.
2025-02-06 13:05:18 +02:00
Benjamin Pracht
de36203ccd Add Ingress OutOfNetwork attribute keys. Add the CanUpdateOwnMetadata claim to the ingress token (#965) 2025-02-05 18:34:56 -08:00
cnderrauber
07992dd19e Add backup codec policy to AddTrackRequest (#947)
* Add backup codec policy

* changeset

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-06 10:21:55 +08:00
Raja Subramanian
3d2a520b8e Proto to "report" different kinds of data. (#962)
* Proto to "report" different kinds of data.

Starting off with `FeatureUsage` with the one feature od
`KRISP_NOISE_CANCELLATION`.

* generated protobuf

* Create six-humans-lick.md

* Update .changeset/six-humans-lick.md

Co-authored-by: lukasIO <mail@lukasseiler.de>

* time range

* generated protobuf

* Add BVC and some comments

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lukasIO <mail@lukasseiler.de>
2025-02-05 10:06:18 +05:30
Denys Smirnov
e6dce57bcf Use SIP statuses as Go and gRPC errors. (#960) 2025-02-04 12:22:02 +02:00
renovate[bot]
bdefe9044e Update dependency @changesets/cli to v2.27.12 (#951)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-03 13:41:51 -06:00
Denys Smirnov
c909c95e07 Pass SIP statuses as RPC error details. (#958) 2025-01-29 23:08:30 +02:00
Denys Smirnov
4cbefae488 Add a workaround for invalid IP masks in SIP. (#956) 2025-01-28 00:40:27 +02:00
Denys Smirnov
e430b4bd32 Add flag to make CreateSIPParticipant synchronous. (#952) 2025-01-28 00:40:18 +02:00