Skip to content

Commit

Permalink
Report call enabled features in SIPCallInfo (#884)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
biglittlebigben and github-actions[bot] authored Nov 26, 2024
1 parent fb1060f commit 40165b0
Show file tree
Hide file tree
Showing 13 changed files with 893 additions and 872 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-parrots-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/protocol": patch
---

Report call enabled features in SIPCallInfo
435 changes: 249 additions & 186 deletions livekit/livekit_sip.pb.go

Large diffs are not rendered by default.

293 changes: 148 additions & 145 deletions livekit/livekit_sip.twirp.go

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions protobufs/livekit_sip.proto
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,15 @@ message SIPCallInfo {
string participant_identity = 5;
SIPUri from_uri = 6;
SIPUri to_uri = 7;
repeated SIPFeature enabled_features = 14;
SIPCallStatus call_status = 8;
int64 created_at = 9;
int64 started_at = 10;
int64 ended_at = 11;
DisconnectReason disconnect_reason = 12;
string error = 13;

// NEXT ID: 15
}

message SIPUri {
Expand All @@ -471,3 +474,8 @@ enum SIPCallStatus {
SCS_DISCONNECTED = 3; // Call has ended
SCS_ERROR = 4; // Call has ended or never succeeded because of an error
}

enum SIPFeature {
NONE = 0;
KRISP_ENABLED = 1;
}
3 changes: 1 addition & 2 deletions protobufs/rpc/io.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ option go_package = "github.com/livekit/protocol/rpc";
import "livekit_egress.proto";
import "livekit_ingress.proto";
import "livekit_sip.proto";
import "rpc/sip.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/duration.proto";

Expand Down Expand Up @@ -170,7 +169,7 @@ message EvaluateSIPDispatchRulesResponse {
// Keys are the names of X-* headers and values are the names of attributes they will be mapped to.
map<string, string> headers_to_attributes = 14;

repeated SIPFeature enabled_features = 15;
repeated livekit.SIPFeature enabled_features = 15;

// Max time for the caller to wait for track subscription.
google.protobuf.Duration ringing_timeout = 16;
Expand Down
6 changes: 1 addition & 5 deletions protobufs/rpc/sip.proto
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ message InternalCreateSIPParticipantRequest {
map<string, string> headers = 21;
map<string, string> headers_to_attributes = 22;

repeated SIPFeature enabled_features = 25;
repeated livekit.SIPFeature enabled_features = 25;

// Max time for the callee to answer the call.
google.protobuf.Duration ringing_timeout = 23;
Expand All @@ -106,7 +106,3 @@ message InternalTransferSIPParticipantRequest {
bool play_dialtone = 3;
}

enum SIPFeature {
NONE = 0;
KRISP_ENABLED = 1;
}
22 changes: 11 additions & 11 deletions replay/cloud_replay.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 40165b0

Please sign in to comment.