Skip to content

Commit

Permalink
Krisp inbound trunk setting (#866)
Browse files Browse the repository at this point in the history
* add krisp_enabled to inbound trunk info

* generated protobuf

* add to EvaluateDispatchRule

* add estimated_cpu to StartEgress

* generated protobuf

* changeset

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
frostbyte73 and github-actions[bot] authored Oct 22, 2024
1 parent 538889e commit ce8ba5a
Show file tree
Hide file tree
Showing 8 changed files with 626 additions and 591 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-numbers-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"github.com/livekit/protocol": patch
---

enable krisp SIP setting
776 changes: 393 additions & 383 deletions livekit/livekit_sip.pb.go

Large diffs are not rendered by default.

273 changes: 137 additions & 136 deletions livekit/livekit_sip.twirp.go

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion protobufs/livekit_sip.proto
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ message SIPInboundTrunkInfo {
google.protobuf.Duration ringing_timeout = 11;
// Max call duration.
google.protobuf.Duration max_call_duration = 12;

bool krisp_enabled = 13;
}

message CreateSIPOutboundTrunkRequest {
Expand Down Expand Up @@ -455,7 +457,7 @@ message SIPUri {
SIPTransport transport = 5;
}

enum SIPCallStatus {
enum SIPCallStatus {
SCS_CALL_INCOMING = 0; // Incoming call is being handled by the SIP service. The SIP participant hasn't joined a LiveKit room yet
SCS_PARTICIPANT_JOINED = 1; // SIP participant for outgoing call has been created. The SIP outgoing call is being established
SCS_ACTIVE = 2; // Call is ongoing. SIP participant is active in the LiveKit room
Expand Down
4 changes: 3 additions & 1 deletion protobufs/rpc/egress.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ message StartEgressRequest {
string token = 8;
string ws_url = 9;

bool cloud_backup_enabled = 10; // cloud only
// cloud only
bool cloud_backup_enabled = 10;
double estimated_cpu = 14;
}

message ListActiveEgressRequest {}
Expand Down
83 changes: 47 additions & 36 deletions rpc/egress.pb.go

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

69 changes: 35 additions & 34 deletions rpc/egress.psrpc.go

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

3 changes: 3 additions & 0 deletions sip/sip.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,9 @@ func EvaluateDispatchRule(projectID string, trunk *livekit.SIPInboundTrunkInfo,
resp.HeadersToAttributes = trunk.HeadersToAttributes
resp.RingingTimeout = trunk.RingingTimeout
resp.MaxCallDuration = trunk.MaxCallDuration
if trunk.KrispEnabled {
resp.EnabledFeatures = append(resp.EnabledFeatures, rpc.SIPFeature_KRISP_ENABLED)
}
}
return resp, nil
}

0 comments on commit ce8ba5a

Please sign in to comment.