Skip to content

Commit

Permalink
Add SIP RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Der committed Nov 8, 2023
1 parent e230ee2 commit ccfb24d
Show file tree
Hide file tree
Showing 15 changed files with 1,461 additions and 374 deletions.
498 changes: 315 additions & 183 deletions livekit/livekit_sip.pb.go

Large diffs are not rendered by default.

112 changes: 57 additions & 55 deletions livekit/livekit_sip.twirp.go

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

13 changes: 13 additions & 0 deletions livekit_sip.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ message CreateSIPTrunkRequest {

message SIPTrunkInfo {
string sip_trunk_id = 1;

repeated string addresses = 2;
string to = 3;
repeated string allowed_destinations_regex = 4;
}

message ListSIPTrunkRequest {
Expand Down Expand Up @@ -143,6 +147,15 @@ message CreateSIPDispatchRuleRequest {

message SIPDispatchRuleInfo {
string sip_dispatch_rule_id = 1;

oneof instrument {
SIPDispatchRuleDirect dispatch_rule_direct = 2;
SIPDispatchRulePin dispatch_rule_pin = 3;
SIPDispatchRuleIndividual dispatch_rule_individual = 4;
}

repeated string trunk_ids = 5;
bool hide_phone_number = 6;
}

message ListSIPDispatchRuleRequest {
Expand Down
1 change: 1 addition & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func Proto() error {
"rpc/agent.proto",
"rpc/egress.proto",
"rpc/ingress.proto",
"rpc/sip.proto",
"rpc/io.proto",
"rpc/room.proto",
"rpc/participant.proto",
Expand Down
Loading

0 comments on commit ccfb24d

Please sign in to comment.