Commit Graph

275 Commits

Author SHA1 Message Date
Denys Smirnov
7814d0fbc2 Fix typo in SIP Trunk conversion. (#744) 2024-06-20 17:49:23 +03:00
David Zhao
e0c49d3c9d Support for key/value attributes on Participant (#733)
* Support for key/value attributes on Participant

Key/value attributes lets us:
* allow various components to provide more information about the participant (i.e. SIP including the phone number)
* allow Agents to communicate their own status to the end user via RTC
* enable applications to update specific fields without overriding others

* generated protobuf

* Attribute support for SIP.

* generated protobuf

* generated protobuf

* allow specifying attributes during token generation

* Remove sip prefix and rename phone number attrs.

* regenerate protos

* update tests

* add kv attrs to sip token

* add attribute test

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Denys Smirnov <dennwc@pm.me>
2024-06-19 22:27:09 -07:00
Denys Smirnov
32c577d805 Split SIP Trunk configuration to inbound and outbound parts. (#738) 2024-06-17 21:42:19 +03:00
David Zhao
725bc923f9 Unique IDs for analytics events and stats (#739)
* Unique IDs for analytics events and stats

* generated protobuf

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-13 22:47:16 -07:00
David Colburn
1dd95af542 s3 session token (#734)
* s3 session token

* changeset

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-11 17:39:00 -07:00
Paul Wells
fcde125058 move analytics rpc to common rpc path (#732)
* move analytics rpc to common rpc path

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-05 23:44:24 -07:00
Paul Wells
429fec77a6 move analytics recorder service out of livekit package (#731)
* move analytics recorder service out of livekit package

* files

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-05 19:39:00 -07:00
David Zhao
c2a0176030 Include node_id with analytics events (#727)
* Include node_id with analytics events

in order to make it easier to reconcile in a distributed setup

* generated protobuf

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-01 23:10:00 -07:00
cnderrauber
6410d008bf Add forward metrics (#722)
* Add forward metrics

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-24 14:14:35 +08:00
Denys Smirnov
90dfd668f4 Add support for additional SIP transports. (#719) 2024-05-23 20:14:47 +03:00
Denys Smirnov
47e4c6bba7 Rename participant_identity in Transcription (#706)
There are two fields named participant_identity in context of Transcription. It's not clear which one corresponds to the transcriber agent, and which one is for the participant which got its speech transcribed.

This change renames the Transcription field to transcribed_participant_identity so to clarify that it's used for the transcribed participant.
2024-05-17 21:58:51 +03:00
David Colburn
511f517b1a add error code to egress info (#714)
* add error code to egress info

* generated protobuf

* add changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-13 10:52:57 -04: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
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
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
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
Denys Smirnov
da776daae7 Add optional name for SIP participant. (#687) 2024-04-19 15:02:57 +03: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
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
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
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
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
Raja Subramanian
cf54792d06 Report drift based on adjusted report time. (#648)
* Report drift based on adjusted report time.

RTCP Sender Reports from publisher are re-based to SFU time base.
Add a field to display drift based on re-mapped time.

* generated protobuf

* change name

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-13 14:00:05 +05:30
David Colburn
00c977ffbb endpoint -> proxy (#638)
* endpoint -> proxy

* generated protobuf

* proxy config

* reorganize

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-11 10:47:44 -07:00
David Colburn
fae28895ef Add gcp custom endpoint (#637)
* add gcp custom endpoint

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-08 09:08:39 -08:00
David Colburn
37d8b0515d add details field to egressInfo (#628)
* add details field to egressInfo

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 11:42:36 -08:00
Denys Smirnov
1552274d8d Accept SIP DTMF via data channel (#630)
* Accept SIP DTMF via data channel.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 20:56:47 +02:00
Paul Wells
dde5199e52 add departure timeout to room create request (#626)
* add departure timeout to room create request

* gen

* cleanup

* gen
2024-03-05 08:42:05 -08:00
Paul Wells
50165a956a add departure timeout to room (#625) 2024-03-05 07:54:36 -08:00
Denys Smirnov
7a70c5da9b Expose trunks/dispatch validation for API/CLI. Deprecate regexps for inbound. (#623) 2024-03-01 11:38:19 +02:00
Benjamin Pracht
9c3dabb016 Add participant_metadata to UpdateIngress (#597) 2024-02-07 14:22:07 -08:00
Benjamin Pracht
eb3e3303ab Allow setting ingress participant metadata (#593) 2024-02-06 16:12:30 -08:00
Raja Subramanian
39eb9f38a0 Notify disabled tracks in SyncState. (#591)
* Notify disabled tracks in SyncState.

When migrating, the new server would not know if a subscriber mute was
active on any of the subscribed tracks. Client would have to notify that
so that the new server can apply the setting upon subscription.

Add a list of disabled tracks to sync state.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-06 22:30:43 +05:30
Raja Subramanian
31b03e6905 Augment LeaveRequest with alternate regions. (#585)
* Augment LeaveRequest with alternate regions.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-25 14:07:57 +05:30
Denys Smirnov
3bd4ca5433 Remove unused SIP participant APIs. (#578) 2024-01-24 18:38:16 +02:00
Paul Wells
9e82495c04 add psrpc redis keepalive (#582)
* add psrpc redis keepalive

* generated protobuf

* codegen

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-21 06:12:01 -08:00
Raja Subramanian
4f497ff252 Reverting adding controller id and selection reason to start session (#581)
* Reverting adding controller id and selection reason to start session

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-20 12:10:21 +05:30
Raja Subramanian
9786b97e9c Add ControllerId and SelectionReason to StartSession. (#579)
* Add ControllerId and SelectionReason to StartSession.

This will allow media node to have those information.
Main purpose will be able to log it in all in one context.

* generated protobuf

* change name from controller_id -> controller_node_id

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-19 15:29:47 +05:30
Paul Wells
cf33ad3861 remove psrpc enabled config (#577)
* remove psrpc enabled config

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-18 03:25:40 -08:00