Skip to content

Commit

Permalink
krisp for outbound trunks (#868)
Browse files Browse the repository at this point in the history
* krisp for outbound trunks

* generated protobuf

* move to createSIPParticipantRequest

* fix tointernal

* Update protobufs/livekit_sip.proto

Co-authored-by: David Zhao <[email protected]>

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <[email protected]>
  • Loading branch information
3 people authored Oct 25, 2024
1 parent a328ced commit 32abc4d
Show file tree
Hide file tree
Showing 11 changed files with 919 additions and 875 deletions.
327 changes: 169 additions & 158 deletions livekit/livekit_sip.pb.go

Large diffs are not rendered by default.

281 changes: 141 additions & 140 deletions livekit/livekit_sip.twirp.go

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions protobufs/livekit_sip.proto
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ message CreateSIPParticipantRequest {
// Max call duration.
google.protobuf.Duration max_call_duration = 12;

// NEXT ID: 14
// Enable voice isolation for the callee.
bool enable_krisp = 14;
// NEXT ID: 15
}

message SIPParticipantInfo {
Expand All @@ -430,7 +432,7 @@ message TransferSIPParticipantRequest {
string participant_identity = 1;
string room_name = 2;
string transfer_to = 3;

// Optionally play dialtone to the SIP participant as an audible indicator of being transferred
bool play_dialtone = 4;
}
Expand Down
6 changes: 1 addition & 5 deletions protobufs/rpc/io.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ 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 @@ -185,11 +186,6 @@ message UpdateSIPCallStateRequest {
// NEXT ID: 2
}

enum SIPFeature {
NONE = 0;
KRISP_ENABLED = 1;
}

enum SIPDispatchResult {
LEGACY_ACCEPT_OR_PIN = 0; // check request_pin field
ACCEPT = 1;
Expand Down
11 changes: 9 additions & 2 deletions protobufs/rpc/sip.proto
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ message InternalCreateSIPParticipantRequest {
map<string, string> headers = 21;
map<string, string> headers_to_attributes = 22;

repeated SIPFeature enabled_features = 25;

// Max time for the callee to answer the call.
google.protobuf.Duration ringing_timeout = 23;
// Max call duration.
google.protobuf.Duration max_call_duration = 24;

// NEXT ID: 25
// NEXT ID: 26
}

message InternalCreateSIPParticipantResponse {
Expand All @@ -99,7 +101,12 @@ message InternalCreateSIPParticipantResponse {
message InternalTransferSIPParticipantRequest {
string sip_call_id = 1;
string transfer_to = 2;

// Optionally play dialtone to the SIP participant as an audible indicator of being transferred
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 32abc4d

Please sign in to comment.