Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

krisp for outbound trunks #868

Merged
merged 6 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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