github.com/livekit/protocol@v1.39.3/rpc/io.pb.go (about) 1 // Copyright 2023 LiveKit, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.36.6 18 // protoc v4.23.4 19 // source: rpc/io.proto 20 21 package rpc 22 23 import ( 24 livekit "github.com/livekit/protocol/livekit" 25 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 26 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 27 durationpb "google.golang.org/protobuf/types/known/durationpb" 28 emptypb "google.golang.org/protobuf/types/known/emptypb" 29 reflect "reflect" 30 sync "sync" 31 unsafe "unsafe" 32 ) 33 34 const ( 35 // Verify that this generated code is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 37 // Verify that runtime/protoimpl is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 39 ) 40 41 type SIPDispatchResult int32 42 43 const ( 44 SIPDispatchResult_LEGACY_ACCEPT_OR_PIN SIPDispatchResult = 0 // check request_pin field 45 SIPDispatchResult_ACCEPT SIPDispatchResult = 1 46 SIPDispatchResult_REQUEST_PIN SIPDispatchResult = 2 47 SIPDispatchResult_REJECT SIPDispatchResult = 3 48 SIPDispatchResult_DROP SIPDispatchResult = 4 49 ) 50 51 // Enum value maps for SIPDispatchResult. 52 var ( 53 SIPDispatchResult_name = map[int32]string{ 54 0: "LEGACY_ACCEPT_OR_PIN", 55 1: "ACCEPT", 56 2: "REQUEST_PIN", 57 3: "REJECT", 58 4: "DROP", 59 } 60 SIPDispatchResult_value = map[string]int32{ 61 "LEGACY_ACCEPT_OR_PIN": 0, 62 "ACCEPT": 1, 63 "REQUEST_PIN": 2, 64 "REJECT": 3, 65 "DROP": 4, 66 } 67 ) 68 69 func (x SIPDispatchResult) Enum() *SIPDispatchResult { 70 p := new(SIPDispatchResult) 71 *p = x 72 return p 73 } 74 75 func (x SIPDispatchResult) String() string { 76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 77 } 78 79 func (SIPDispatchResult) Descriptor() protoreflect.EnumDescriptor { 80 return file_rpc_io_proto_enumTypes[0].Descriptor() 81 } 82 83 func (SIPDispatchResult) Type() protoreflect.EnumType { 84 return &file_rpc_io_proto_enumTypes[0] 85 } 86 87 func (x SIPDispatchResult) Number() protoreflect.EnumNumber { 88 return protoreflect.EnumNumber(x) 89 } 90 91 // Deprecated: Use SIPDispatchResult.Descriptor instead. 92 func (SIPDispatchResult) EnumDescriptor() ([]byte, []int) { 93 return file_rpc_io_proto_rawDescGZIP(), []int{0} 94 } 95 96 type GetEgressRequest struct { 97 state protoimpl.MessageState `protogen:"open.v1"` 98 EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` 99 unknownFields protoimpl.UnknownFields 100 sizeCache protoimpl.SizeCache 101 } 102 103 func (x *GetEgressRequest) Reset() { 104 *x = GetEgressRequest{} 105 mi := &file_rpc_io_proto_msgTypes[0] 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 ms.StoreMessageInfo(mi) 108 } 109 110 func (x *GetEgressRequest) String() string { 111 return protoimpl.X.MessageStringOf(x) 112 } 113 114 func (*GetEgressRequest) ProtoMessage() {} 115 116 func (x *GetEgressRequest) ProtoReflect() protoreflect.Message { 117 mi := &file_rpc_io_proto_msgTypes[0] 118 if x != nil { 119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 120 if ms.LoadMessageInfo() == nil { 121 ms.StoreMessageInfo(mi) 122 } 123 return ms 124 } 125 return mi.MessageOf(x) 126 } 127 128 // Deprecated: Use GetEgressRequest.ProtoReflect.Descriptor instead. 129 func (*GetEgressRequest) Descriptor() ([]byte, []int) { 130 return file_rpc_io_proto_rawDescGZIP(), []int{0} 131 } 132 133 func (x *GetEgressRequest) GetEgressId() string { 134 if x != nil { 135 return x.EgressId 136 } 137 return "" 138 } 139 140 type UpdateMetricsRequest struct { 141 state protoimpl.MessageState `protogen:"open.v1"` 142 Info *livekit.EgressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` 143 AvgCpuUsage float32 `protobuf:"fixed32,3,opt,name=avg_cpu_usage,json=avgCpuUsage,proto3" json:"avg_cpu_usage,omitempty"` 144 MaxCpuUsage float32 `protobuf:"fixed32,4,opt,name=max_cpu_usage,json=maxCpuUsage,proto3" json:"max_cpu_usage,omitempty"` 145 unknownFields protoimpl.UnknownFields 146 sizeCache protoimpl.SizeCache 147 } 148 149 func (x *UpdateMetricsRequest) Reset() { 150 *x = UpdateMetricsRequest{} 151 mi := &file_rpc_io_proto_msgTypes[1] 152 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 153 ms.StoreMessageInfo(mi) 154 } 155 156 func (x *UpdateMetricsRequest) String() string { 157 return protoimpl.X.MessageStringOf(x) 158 } 159 160 func (*UpdateMetricsRequest) ProtoMessage() {} 161 162 func (x *UpdateMetricsRequest) ProtoReflect() protoreflect.Message { 163 mi := &file_rpc_io_proto_msgTypes[1] 164 if x != nil { 165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 166 if ms.LoadMessageInfo() == nil { 167 ms.StoreMessageInfo(mi) 168 } 169 return ms 170 } 171 return mi.MessageOf(x) 172 } 173 174 // Deprecated: Use UpdateMetricsRequest.ProtoReflect.Descriptor instead. 175 func (*UpdateMetricsRequest) Descriptor() ([]byte, []int) { 176 return file_rpc_io_proto_rawDescGZIP(), []int{1} 177 } 178 179 func (x *UpdateMetricsRequest) GetInfo() *livekit.EgressInfo { 180 if x != nil { 181 return x.Info 182 } 183 return nil 184 } 185 186 func (x *UpdateMetricsRequest) GetAvgCpuUsage() float32 { 187 if x != nil { 188 return x.AvgCpuUsage 189 } 190 return 0 191 } 192 193 func (x *UpdateMetricsRequest) GetMaxCpuUsage() float32 { 194 if x != nil { 195 return x.MaxCpuUsage 196 } 197 return 0 198 } 199 200 // Query an ingress info from an ingress ID or stream key 201 type GetIngressInfoRequest struct { 202 state protoimpl.MessageState `protogen:"open.v1"` 203 IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` 204 StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` 205 unknownFields protoimpl.UnknownFields 206 sizeCache protoimpl.SizeCache 207 } 208 209 func (x *GetIngressInfoRequest) Reset() { 210 *x = GetIngressInfoRequest{} 211 mi := &file_rpc_io_proto_msgTypes[2] 212 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 213 ms.StoreMessageInfo(mi) 214 } 215 216 func (x *GetIngressInfoRequest) String() string { 217 return protoimpl.X.MessageStringOf(x) 218 } 219 220 func (*GetIngressInfoRequest) ProtoMessage() {} 221 222 func (x *GetIngressInfoRequest) ProtoReflect() protoreflect.Message { 223 mi := &file_rpc_io_proto_msgTypes[2] 224 if x != nil { 225 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 226 if ms.LoadMessageInfo() == nil { 227 ms.StoreMessageInfo(mi) 228 } 229 return ms 230 } 231 return mi.MessageOf(x) 232 } 233 234 // Deprecated: Use GetIngressInfoRequest.ProtoReflect.Descriptor instead. 235 func (*GetIngressInfoRequest) Descriptor() ([]byte, []int) { 236 return file_rpc_io_proto_rawDescGZIP(), []int{2} 237 } 238 239 func (x *GetIngressInfoRequest) GetIngressId() string { 240 if x != nil { 241 return x.IngressId 242 } 243 return "" 244 } 245 246 func (x *GetIngressInfoRequest) GetStreamKey() string { 247 if x != nil { 248 return x.StreamKey 249 } 250 return "" 251 } 252 253 type GetIngressInfoResponse struct { 254 state protoimpl.MessageState `protogen:"open.v1"` 255 Info *livekit.IngressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` 256 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` 257 WsUrl string `protobuf:"bytes,3,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` 258 LoggingFields map[string]string `protobuf:"bytes,4,rep,name=logging_fields,json=loggingFields,proto3" json:"logging_fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 259 unknownFields protoimpl.UnknownFields 260 sizeCache protoimpl.SizeCache 261 } 262 263 func (x *GetIngressInfoResponse) Reset() { 264 *x = GetIngressInfoResponse{} 265 mi := &file_rpc_io_proto_msgTypes[3] 266 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 267 ms.StoreMessageInfo(mi) 268 } 269 270 func (x *GetIngressInfoResponse) String() string { 271 return protoimpl.X.MessageStringOf(x) 272 } 273 274 func (*GetIngressInfoResponse) ProtoMessage() {} 275 276 func (x *GetIngressInfoResponse) ProtoReflect() protoreflect.Message { 277 mi := &file_rpc_io_proto_msgTypes[3] 278 if x != nil { 279 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 280 if ms.LoadMessageInfo() == nil { 281 ms.StoreMessageInfo(mi) 282 } 283 return ms 284 } 285 return mi.MessageOf(x) 286 } 287 288 // Deprecated: Use GetIngressInfoResponse.ProtoReflect.Descriptor instead. 289 func (*GetIngressInfoResponse) Descriptor() ([]byte, []int) { 290 return file_rpc_io_proto_rawDescGZIP(), []int{3} 291 } 292 293 func (x *GetIngressInfoResponse) GetInfo() *livekit.IngressInfo { 294 if x != nil { 295 return x.Info 296 } 297 return nil 298 } 299 300 func (x *GetIngressInfoResponse) GetToken() string { 301 if x != nil { 302 return x.Token 303 } 304 return "" 305 } 306 307 func (x *GetIngressInfoResponse) GetWsUrl() string { 308 if x != nil { 309 return x.WsUrl 310 } 311 return "" 312 } 313 314 func (x *GetIngressInfoResponse) GetLoggingFields() map[string]string { 315 if x != nil { 316 return x.LoggingFields 317 } 318 return nil 319 } 320 321 // Request to store an update to the ingress state ingress -> service 322 type UpdateIngressStateRequest struct { 323 state protoimpl.MessageState `protogen:"open.v1"` 324 IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` 325 State *livekit.IngressState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` 326 unknownFields protoimpl.UnknownFields 327 sizeCache protoimpl.SizeCache 328 } 329 330 func (x *UpdateIngressStateRequest) Reset() { 331 *x = UpdateIngressStateRequest{} 332 mi := &file_rpc_io_proto_msgTypes[4] 333 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 334 ms.StoreMessageInfo(mi) 335 } 336 337 func (x *UpdateIngressStateRequest) String() string { 338 return protoimpl.X.MessageStringOf(x) 339 } 340 341 func (*UpdateIngressStateRequest) ProtoMessage() {} 342 343 func (x *UpdateIngressStateRequest) ProtoReflect() protoreflect.Message { 344 mi := &file_rpc_io_proto_msgTypes[4] 345 if x != nil { 346 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 347 if ms.LoadMessageInfo() == nil { 348 ms.StoreMessageInfo(mi) 349 } 350 return ms 351 } 352 return mi.MessageOf(x) 353 } 354 355 // Deprecated: Use UpdateIngressStateRequest.ProtoReflect.Descriptor instead. 356 func (*UpdateIngressStateRequest) Descriptor() ([]byte, []int) { 357 return file_rpc_io_proto_rawDescGZIP(), []int{4} 358 } 359 360 func (x *UpdateIngressStateRequest) GetIngressId() string { 361 if x != nil { 362 return x.IngressId 363 } 364 return "" 365 } 366 367 func (x *UpdateIngressStateRequest) GetState() *livekit.IngressState { 368 if x != nil { 369 return x.State 370 } 371 return nil 372 } 373 374 type GetSIPTrunkAuthenticationRequest struct { 375 state protoimpl.MessageState `protogen:"open.v1"` 376 // Deprecated: Marked as deprecated in rpc/io.proto. 377 SipCallId string `protobuf:"bytes,6,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` 378 // What Number is calling 379 // 380 // Deprecated: Marked as deprecated in rpc/io.proto. 381 From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` 382 // What Host is calling 383 // 384 // Deprecated: Marked as deprecated in rpc/io.proto. 385 FromHost string `protobuf:"bytes,7,opt,name=from_host,json=fromHost,proto3" json:"from_host,omitempty"` 386 // What Number was called 387 // 388 // Deprecated: Marked as deprecated in rpc/io.proto. 389 To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` 390 // What Host was called 391 // 392 // Deprecated: Marked as deprecated in rpc/io.proto. 393 ToHost string `protobuf:"bytes,5,opt,name=to_host,json=toHost,proto3" json:"to_host,omitempty"` 394 // What is the IP address of the called number 395 // 396 // Deprecated: Marked as deprecated in rpc/io.proto. 397 SrcAddress string `protobuf:"bytes,4,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"` 398 Call *SIPCall `protobuf:"bytes,8,opt,name=call,proto3" json:"call,omitempty"` 399 unknownFields protoimpl.UnknownFields 400 sizeCache protoimpl.SizeCache 401 } 402 403 func (x *GetSIPTrunkAuthenticationRequest) Reset() { 404 *x = GetSIPTrunkAuthenticationRequest{} 405 mi := &file_rpc_io_proto_msgTypes[5] 406 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 407 ms.StoreMessageInfo(mi) 408 } 409 410 func (x *GetSIPTrunkAuthenticationRequest) String() string { 411 return protoimpl.X.MessageStringOf(x) 412 } 413 414 func (*GetSIPTrunkAuthenticationRequest) ProtoMessage() {} 415 416 func (x *GetSIPTrunkAuthenticationRequest) ProtoReflect() protoreflect.Message { 417 mi := &file_rpc_io_proto_msgTypes[5] 418 if x != nil { 419 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 420 if ms.LoadMessageInfo() == nil { 421 ms.StoreMessageInfo(mi) 422 } 423 return ms 424 } 425 return mi.MessageOf(x) 426 } 427 428 // Deprecated: Use GetSIPTrunkAuthenticationRequest.ProtoReflect.Descriptor instead. 429 func (*GetSIPTrunkAuthenticationRequest) Descriptor() ([]byte, []int) { 430 return file_rpc_io_proto_rawDescGZIP(), []int{5} 431 } 432 433 // Deprecated: Marked as deprecated in rpc/io.proto. 434 func (x *GetSIPTrunkAuthenticationRequest) GetSipCallId() string { 435 if x != nil { 436 return x.SipCallId 437 } 438 return "" 439 } 440 441 // Deprecated: Marked as deprecated in rpc/io.proto. 442 func (x *GetSIPTrunkAuthenticationRequest) GetFrom() string { 443 if x != nil { 444 return x.From 445 } 446 return "" 447 } 448 449 // Deprecated: Marked as deprecated in rpc/io.proto. 450 func (x *GetSIPTrunkAuthenticationRequest) GetFromHost() string { 451 if x != nil { 452 return x.FromHost 453 } 454 return "" 455 } 456 457 // Deprecated: Marked as deprecated in rpc/io.proto. 458 func (x *GetSIPTrunkAuthenticationRequest) GetTo() string { 459 if x != nil { 460 return x.To 461 } 462 return "" 463 } 464 465 // Deprecated: Marked as deprecated in rpc/io.proto. 466 func (x *GetSIPTrunkAuthenticationRequest) GetToHost() string { 467 if x != nil { 468 return x.ToHost 469 } 470 return "" 471 } 472 473 // Deprecated: Marked as deprecated in rpc/io.proto. 474 func (x *GetSIPTrunkAuthenticationRequest) GetSrcAddress() string { 475 if x != nil { 476 return x.SrcAddress 477 } 478 return "" 479 } 480 481 func (x *GetSIPTrunkAuthenticationRequest) GetCall() *SIPCall { 482 if x != nil { 483 return x.Call 484 } 485 return nil 486 } 487 488 type GetSIPTrunkAuthenticationResponse struct { 489 state protoimpl.MessageState `protogen:"open.v1"` 490 // Expected username and password 491 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 492 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` 493 Drop bool `protobuf:"varint,3,opt,name=drop,proto3" json:"drop,omitempty"` 494 // Trunk used to fulfill this request 495 SipTrunkId string `protobuf:"bytes,4,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` 496 // Used in Cloud only 497 ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` 498 unknownFields protoimpl.UnknownFields 499 sizeCache protoimpl.SizeCache 500 } 501 502 func (x *GetSIPTrunkAuthenticationResponse) Reset() { 503 *x = GetSIPTrunkAuthenticationResponse{} 504 mi := &file_rpc_io_proto_msgTypes[6] 505 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 506 ms.StoreMessageInfo(mi) 507 } 508 509 func (x *GetSIPTrunkAuthenticationResponse) String() string { 510 return protoimpl.X.MessageStringOf(x) 511 } 512 513 func (*GetSIPTrunkAuthenticationResponse) ProtoMessage() {} 514 515 func (x *GetSIPTrunkAuthenticationResponse) ProtoReflect() protoreflect.Message { 516 mi := &file_rpc_io_proto_msgTypes[6] 517 if x != nil { 518 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 519 if ms.LoadMessageInfo() == nil { 520 ms.StoreMessageInfo(mi) 521 } 522 return ms 523 } 524 return mi.MessageOf(x) 525 } 526 527 // Deprecated: Use GetSIPTrunkAuthenticationResponse.ProtoReflect.Descriptor instead. 528 func (*GetSIPTrunkAuthenticationResponse) Descriptor() ([]byte, []int) { 529 return file_rpc_io_proto_rawDescGZIP(), []int{6} 530 } 531 532 func (x *GetSIPTrunkAuthenticationResponse) GetUsername() string { 533 if x != nil { 534 return x.Username 535 } 536 return "" 537 } 538 539 func (x *GetSIPTrunkAuthenticationResponse) GetPassword() string { 540 if x != nil { 541 return x.Password 542 } 543 return "" 544 } 545 546 func (x *GetSIPTrunkAuthenticationResponse) GetDrop() bool { 547 if x != nil { 548 return x.Drop 549 } 550 return false 551 } 552 553 func (x *GetSIPTrunkAuthenticationResponse) GetSipTrunkId() string { 554 if x != nil { 555 return x.SipTrunkId 556 } 557 return "" 558 } 559 560 func (x *GetSIPTrunkAuthenticationResponse) GetProjectId() string { 561 if x != nil { 562 return x.ProjectId 563 } 564 return "" 565 } 566 567 type EvaluateSIPDispatchRulesRequest struct { 568 state protoimpl.MessageState `protogen:"open.v1"` 569 // Deprecated: Marked as deprecated in rpc/io.proto. 570 SipCallId string `protobuf:"bytes,8,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` 571 // Deprecated: Marked as deprecated in rpc/io.proto. 572 SipParticipantId string `protobuf:"bytes,1,opt,name=sip_participant_id,json=sipParticipantId,proto3" json:"sip_participant_id,omitempty"` 573 // Trunk from the auth response, if any 574 SipTrunkId string `protobuf:"bytes,10,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` 575 // What Number is calling 576 // 577 // Deprecated: Marked as deprecated in rpc/io.proto. 578 CallingNumber string `protobuf:"bytes,2,opt,name=calling_number,json=callingNumber,proto3" json:"calling_number,omitempty"` 579 // What Host is calling 580 // 581 // Deprecated: Marked as deprecated in rpc/io.proto. 582 CallingHost string `protobuf:"bytes,11,opt,name=calling_host,json=callingHost,proto3" json:"calling_host,omitempty"` 583 // What Number was called 584 // 585 // Deprecated: Marked as deprecated in rpc/io.proto. 586 CalledNumber string `protobuf:"bytes,3,opt,name=called_number,json=calledNumber,proto3" json:"called_number,omitempty"` 587 // What is the IP address of the called number 588 // 589 // Deprecated: Marked as deprecated in rpc/io.proto. 590 SrcAddress string `protobuf:"bytes,4,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"` 591 // What pin has been entered if any 592 Pin string `protobuf:"bytes,5,opt,name=pin,proto3" json:"pin,omitempty"` 593 // Caller rejected pin prompt, only try public rooms 594 NoPin bool `protobuf:"varint,6,opt,name=no_pin,json=noPin,proto3" json:"no_pin,omitempty"` 595 // What Host was called 596 // 597 // Deprecated: Marked as deprecated in rpc/io.proto. 598 CalledHost string `protobuf:"bytes,7,opt,name=called_host,json=calledHost,proto3" json:"called_host,omitempty"` 599 // Extra participant attributes added for this call. 600 // Usually include provider-specific metadata. 601 ExtraAttributes map[string]string `protobuf:"bytes,9,rep,name=extra_attributes,json=extraAttributes,proto3" json:"extra_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 602 Call *SIPCall `protobuf:"bytes,12,opt,name=call,proto3" json:"call,omitempty"` 603 unknownFields protoimpl.UnknownFields 604 sizeCache protoimpl.SizeCache 605 } 606 607 func (x *EvaluateSIPDispatchRulesRequest) Reset() { 608 *x = EvaluateSIPDispatchRulesRequest{} 609 mi := &file_rpc_io_proto_msgTypes[7] 610 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 611 ms.StoreMessageInfo(mi) 612 } 613 614 func (x *EvaluateSIPDispatchRulesRequest) String() string { 615 return protoimpl.X.MessageStringOf(x) 616 } 617 618 func (*EvaluateSIPDispatchRulesRequest) ProtoMessage() {} 619 620 func (x *EvaluateSIPDispatchRulesRequest) ProtoReflect() protoreflect.Message { 621 mi := &file_rpc_io_proto_msgTypes[7] 622 if x != nil { 623 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 624 if ms.LoadMessageInfo() == nil { 625 ms.StoreMessageInfo(mi) 626 } 627 return ms 628 } 629 return mi.MessageOf(x) 630 } 631 632 // Deprecated: Use EvaluateSIPDispatchRulesRequest.ProtoReflect.Descriptor instead. 633 func (*EvaluateSIPDispatchRulesRequest) Descriptor() ([]byte, []int) { 634 return file_rpc_io_proto_rawDescGZIP(), []int{7} 635 } 636 637 // Deprecated: Marked as deprecated in rpc/io.proto. 638 func (x *EvaluateSIPDispatchRulesRequest) GetSipCallId() string { 639 if x != nil { 640 return x.SipCallId 641 } 642 return "" 643 } 644 645 // Deprecated: Marked as deprecated in rpc/io.proto. 646 func (x *EvaluateSIPDispatchRulesRequest) GetSipParticipantId() string { 647 if x != nil { 648 return x.SipParticipantId 649 } 650 return "" 651 } 652 653 func (x *EvaluateSIPDispatchRulesRequest) GetSipTrunkId() string { 654 if x != nil { 655 return x.SipTrunkId 656 } 657 return "" 658 } 659 660 // Deprecated: Marked as deprecated in rpc/io.proto. 661 func (x *EvaluateSIPDispatchRulesRequest) GetCallingNumber() string { 662 if x != nil { 663 return x.CallingNumber 664 } 665 return "" 666 } 667 668 // Deprecated: Marked as deprecated in rpc/io.proto. 669 func (x *EvaluateSIPDispatchRulesRequest) GetCallingHost() string { 670 if x != nil { 671 return x.CallingHost 672 } 673 return "" 674 } 675 676 // Deprecated: Marked as deprecated in rpc/io.proto. 677 func (x *EvaluateSIPDispatchRulesRequest) GetCalledNumber() string { 678 if x != nil { 679 return x.CalledNumber 680 } 681 return "" 682 } 683 684 // Deprecated: Marked as deprecated in rpc/io.proto. 685 func (x *EvaluateSIPDispatchRulesRequest) GetSrcAddress() string { 686 if x != nil { 687 return x.SrcAddress 688 } 689 return "" 690 } 691 692 func (x *EvaluateSIPDispatchRulesRequest) GetPin() string { 693 if x != nil { 694 return x.Pin 695 } 696 return "" 697 } 698 699 func (x *EvaluateSIPDispatchRulesRequest) GetNoPin() bool { 700 if x != nil { 701 return x.NoPin 702 } 703 return false 704 } 705 706 // Deprecated: Marked as deprecated in rpc/io.proto. 707 func (x *EvaluateSIPDispatchRulesRequest) GetCalledHost() string { 708 if x != nil { 709 return x.CalledHost 710 } 711 return "" 712 } 713 714 func (x *EvaluateSIPDispatchRulesRequest) GetExtraAttributes() map[string]string { 715 if x != nil { 716 return x.ExtraAttributes 717 } 718 return nil 719 } 720 721 func (x *EvaluateSIPDispatchRulesRequest) GetCall() *SIPCall { 722 if x != nil { 723 return x.Call 724 } 725 return nil 726 } 727 728 type EvaluateSIPDispatchRulesResponse struct { 729 state protoimpl.MessageState `protogen:"open.v1"` 730 // non-empty string if SIPParticipant should be placed a room 731 RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` 732 // What should be used for the LiveKit participant identity 733 ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` 734 // What should be used for the LiveKit participant name 735 ParticipantName string `protobuf:"bytes,7,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"` 736 // What should be used for the LiveKit participant metadata 737 ParticipantMetadata string `protobuf:"bytes,8,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` 738 // What should be used for the LiveKit participant attributes 739 ParticipantAttributes map[string]string `protobuf:"bytes,11,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 740 // Deprecated: Marked as deprecated in rpc/io.proto. 741 RequestPin bool `protobuf:"varint,3,opt,name=request_pin,json=requestPin,proto3" json:"request_pin,omitempty"` // see result 742 // optional token that should be used when creating LiveKit participant 743 Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` 744 // optional websocket url that should be used when creating LiveKit participant 745 WsUrl string `protobuf:"bytes,5,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` 746 Result SIPDispatchResult `protobuf:"varint,6,opt,name=result,proto3,enum=rpc.SIPDispatchResult" json:"result,omitempty"` 747 // Trunk used to fulfill this request 748 SipTrunkId string `protobuf:"bytes,9,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` 749 // Dispatch Rule used to fulfill this request 750 SipDispatchRuleId string `protobuf:"bytes,10,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3" json:"sip_dispatch_rule_id,omitempty"` 751 // Used in Cloud only 752 ProjectId string `protobuf:"bytes,12,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` 753 // Include these SIP X-* headers in 200 OK response to INVITE. 754 // These headers are included as-is and may help identify triggered LiveKit Dispatch Rule for the other SIP endpoint. 755 Headers map[string]string `protobuf:"bytes,13,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 756 // Map SIP X-* headers from INVITE to SIP participant attributes. 757 // Keys are the names of X-* headers and values are the names of attributes they will be mapped to. 758 HeadersToAttributes map[string]string `protobuf:"bytes,14,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 759 // Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests. 760 // Keys are the names of attributes and values are the names of X-* headers they will be mapped to. 761 AttributesToHeaders map[string]string `protobuf:"bytes,18,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` 762 // Map SIP headers from INVITE to sip.h.* participant attributes automatically. 763 // 764 // When the names of required headers is known, using headers_to_attributes is strongly recommended. 765 // 766 // When mapping INVITE headers to response headers with attributes_to_headers map, 767 // lowercase header names should be used, for example: sip.h.x-custom-header. 768 IncludeHeaders livekit.SIPHeaderOptions `protobuf:"varint,19,opt,name=include_headers,json=includeHeaders,proto3,enum=livekit.SIPHeaderOptions" json:"include_headers,omitempty"` 769 EnabledFeatures []livekit.SIPFeature `protobuf:"varint,15,rep,packed,name=enabled_features,json=enabledFeatures,proto3,enum=livekit.SIPFeature" json:"enabled_features,omitempty"` 770 // Max time for the caller to wait for track subscription. 771 RingingTimeout *durationpb.Duration `protobuf:"bytes,16,opt,name=ringing_timeout,json=ringingTimeout,proto3" json:"ringing_timeout,omitempty"` 772 // Max call duration. 773 MaxCallDuration *durationpb.Duration `protobuf:"bytes,17,opt,name=max_call_duration,json=maxCallDuration,proto3" json:"max_call_duration,omitempty"` 774 // Room preset and config are used only to generate tokens 775 // once tokens are returned by this response consistently, it will no longer 776 // be needed 777 RoomPreset string `protobuf:"bytes,20,opt,name=room_preset,json=roomPreset,proto3" json:"room_preset,omitempty"` 778 RoomConfig *livekit.RoomConfiguration `protobuf:"bytes,21,opt,name=room_config,json=roomConfig,proto3" json:"room_config,omitempty"` 779 MediaEncryption livekit.SIPMediaEncryption `protobuf:"varint,22,opt,name=media_encryption,json=mediaEncryption,proto3,enum=livekit.SIPMediaEncryption" json:"media_encryption,omitempty"` 780 unknownFields protoimpl.UnknownFields 781 sizeCache protoimpl.SizeCache 782 } 783 784 func (x *EvaluateSIPDispatchRulesResponse) Reset() { 785 *x = EvaluateSIPDispatchRulesResponse{} 786 mi := &file_rpc_io_proto_msgTypes[8] 787 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 788 ms.StoreMessageInfo(mi) 789 } 790 791 func (x *EvaluateSIPDispatchRulesResponse) String() string { 792 return protoimpl.X.MessageStringOf(x) 793 } 794 795 func (*EvaluateSIPDispatchRulesResponse) ProtoMessage() {} 796 797 func (x *EvaluateSIPDispatchRulesResponse) ProtoReflect() protoreflect.Message { 798 mi := &file_rpc_io_proto_msgTypes[8] 799 if x != nil { 800 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 801 if ms.LoadMessageInfo() == nil { 802 ms.StoreMessageInfo(mi) 803 } 804 return ms 805 } 806 return mi.MessageOf(x) 807 } 808 809 // Deprecated: Use EvaluateSIPDispatchRulesResponse.ProtoReflect.Descriptor instead. 810 func (*EvaluateSIPDispatchRulesResponse) Descriptor() ([]byte, []int) { 811 return file_rpc_io_proto_rawDescGZIP(), []int{8} 812 } 813 814 func (x *EvaluateSIPDispatchRulesResponse) GetRoomName() string { 815 if x != nil { 816 return x.RoomName 817 } 818 return "" 819 } 820 821 func (x *EvaluateSIPDispatchRulesResponse) GetParticipantIdentity() string { 822 if x != nil { 823 return x.ParticipantIdentity 824 } 825 return "" 826 } 827 828 func (x *EvaluateSIPDispatchRulesResponse) GetParticipantName() string { 829 if x != nil { 830 return x.ParticipantName 831 } 832 return "" 833 } 834 835 func (x *EvaluateSIPDispatchRulesResponse) GetParticipantMetadata() string { 836 if x != nil { 837 return x.ParticipantMetadata 838 } 839 return "" 840 } 841 842 func (x *EvaluateSIPDispatchRulesResponse) GetParticipantAttributes() map[string]string { 843 if x != nil { 844 return x.ParticipantAttributes 845 } 846 return nil 847 } 848 849 // Deprecated: Marked as deprecated in rpc/io.proto. 850 func (x *EvaluateSIPDispatchRulesResponse) GetRequestPin() bool { 851 if x != nil { 852 return x.RequestPin 853 } 854 return false 855 } 856 857 func (x *EvaluateSIPDispatchRulesResponse) GetToken() string { 858 if x != nil { 859 return x.Token 860 } 861 return "" 862 } 863 864 func (x *EvaluateSIPDispatchRulesResponse) GetWsUrl() string { 865 if x != nil { 866 return x.WsUrl 867 } 868 return "" 869 } 870 871 func (x *EvaluateSIPDispatchRulesResponse) GetResult() SIPDispatchResult { 872 if x != nil { 873 return x.Result 874 } 875 return SIPDispatchResult_LEGACY_ACCEPT_OR_PIN 876 } 877 878 func (x *EvaluateSIPDispatchRulesResponse) GetSipTrunkId() string { 879 if x != nil { 880 return x.SipTrunkId 881 } 882 return "" 883 } 884 885 func (x *EvaluateSIPDispatchRulesResponse) GetSipDispatchRuleId() string { 886 if x != nil { 887 return x.SipDispatchRuleId 888 } 889 return "" 890 } 891 892 func (x *EvaluateSIPDispatchRulesResponse) GetProjectId() string { 893 if x != nil { 894 return x.ProjectId 895 } 896 return "" 897 } 898 899 func (x *EvaluateSIPDispatchRulesResponse) GetHeaders() map[string]string { 900 if x != nil { 901 return x.Headers 902 } 903 return nil 904 } 905 906 func (x *EvaluateSIPDispatchRulesResponse) GetHeadersToAttributes() map[string]string { 907 if x != nil { 908 return x.HeadersToAttributes 909 } 910 return nil 911 } 912 913 func (x *EvaluateSIPDispatchRulesResponse) GetAttributesToHeaders() map[string]string { 914 if x != nil { 915 return x.AttributesToHeaders 916 } 917 return nil 918 } 919 920 func (x *EvaluateSIPDispatchRulesResponse) GetIncludeHeaders() livekit.SIPHeaderOptions { 921 if x != nil { 922 return x.IncludeHeaders 923 } 924 return livekit.SIPHeaderOptions(0) 925 } 926 927 func (x *EvaluateSIPDispatchRulesResponse) GetEnabledFeatures() []livekit.SIPFeature { 928 if x != nil { 929 return x.EnabledFeatures 930 } 931 return nil 932 } 933 934 func (x *EvaluateSIPDispatchRulesResponse) GetRingingTimeout() *durationpb.Duration { 935 if x != nil { 936 return x.RingingTimeout 937 } 938 return nil 939 } 940 941 func (x *EvaluateSIPDispatchRulesResponse) GetMaxCallDuration() *durationpb.Duration { 942 if x != nil { 943 return x.MaxCallDuration 944 } 945 return nil 946 } 947 948 func (x *EvaluateSIPDispatchRulesResponse) GetRoomPreset() string { 949 if x != nil { 950 return x.RoomPreset 951 } 952 return "" 953 } 954 955 func (x *EvaluateSIPDispatchRulesResponse) GetRoomConfig() *livekit.RoomConfiguration { 956 if x != nil { 957 return x.RoomConfig 958 } 959 return nil 960 } 961 962 func (x *EvaluateSIPDispatchRulesResponse) GetMediaEncryption() livekit.SIPMediaEncryption { 963 if x != nil { 964 return x.MediaEncryption 965 } 966 return livekit.SIPMediaEncryption(0) 967 } 968 969 type UpdateSIPCallStateRequest struct { 970 state protoimpl.MessageState `protogen:"open.v1"` 971 CallInfo *livekit.SIPCallInfo `protobuf:"bytes,1,opt,name=call_info,json=callInfo,proto3" json:"call_info,omitempty"` 972 TransferInfo *livekit.SIPTransferInfo `protobuf:"bytes,2,opt,name=transfer_info,json=transferInfo,proto3" json:"transfer_info,omitempty"` 973 unknownFields protoimpl.UnknownFields 974 sizeCache protoimpl.SizeCache 975 } 976 977 func (x *UpdateSIPCallStateRequest) Reset() { 978 *x = UpdateSIPCallStateRequest{} 979 mi := &file_rpc_io_proto_msgTypes[9] 980 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 981 ms.StoreMessageInfo(mi) 982 } 983 984 func (x *UpdateSIPCallStateRequest) String() string { 985 return protoimpl.X.MessageStringOf(x) 986 } 987 988 func (*UpdateSIPCallStateRequest) ProtoMessage() {} 989 990 func (x *UpdateSIPCallStateRequest) ProtoReflect() protoreflect.Message { 991 mi := &file_rpc_io_proto_msgTypes[9] 992 if x != nil { 993 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 994 if ms.LoadMessageInfo() == nil { 995 ms.StoreMessageInfo(mi) 996 } 997 return ms 998 } 999 return mi.MessageOf(x) 1000 } 1001 1002 // Deprecated: Use UpdateSIPCallStateRequest.ProtoReflect.Descriptor instead. 1003 func (*UpdateSIPCallStateRequest) Descriptor() ([]byte, []int) { 1004 return file_rpc_io_proto_rawDescGZIP(), []int{9} 1005 } 1006 1007 func (x *UpdateSIPCallStateRequest) GetCallInfo() *livekit.SIPCallInfo { 1008 if x != nil { 1009 return x.CallInfo 1010 } 1011 return nil 1012 } 1013 1014 func (x *UpdateSIPCallStateRequest) GetTransferInfo() *livekit.SIPTransferInfo { 1015 if x != nil { 1016 return x.TransferInfo 1017 } 1018 return nil 1019 } 1020 1021 type SIPCall struct { 1022 state protoimpl.MessageState `protogen:"open.v1"` 1023 LkCallId string `protobuf:"bytes,1,opt,name=lk_call_id,json=lkCallId,proto3" json:"lk_call_id,omitempty"` 1024 SourceIp string `protobuf:"bytes,2,opt,name=source_ip,json=sourceIp,proto3" json:"source_ip,omitempty"` // source ip (without port) 1025 Address *livekit.SIPUri `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // address in the request line (INVITE) 1026 From *livekit.SIPUri `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"` // From header 1027 To *livekit.SIPUri `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"` // To header 1028 Via []*livekit.SIPUri `protobuf:"bytes,6,rep,name=via,proto3" json:"via,omitempty"` // Via headers 1029 unknownFields protoimpl.UnknownFields 1030 sizeCache protoimpl.SizeCache 1031 } 1032 1033 func (x *SIPCall) Reset() { 1034 *x = SIPCall{} 1035 mi := &file_rpc_io_proto_msgTypes[10] 1036 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1037 ms.StoreMessageInfo(mi) 1038 } 1039 1040 func (x *SIPCall) String() string { 1041 return protoimpl.X.MessageStringOf(x) 1042 } 1043 1044 func (*SIPCall) ProtoMessage() {} 1045 1046 func (x *SIPCall) ProtoReflect() protoreflect.Message { 1047 mi := &file_rpc_io_proto_msgTypes[10] 1048 if x != nil { 1049 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 1050 if ms.LoadMessageInfo() == nil { 1051 ms.StoreMessageInfo(mi) 1052 } 1053 return ms 1054 } 1055 return mi.MessageOf(x) 1056 } 1057 1058 // Deprecated: Use SIPCall.ProtoReflect.Descriptor instead. 1059 func (*SIPCall) Descriptor() ([]byte, []int) { 1060 return file_rpc_io_proto_rawDescGZIP(), []int{10} 1061 } 1062 1063 func (x *SIPCall) GetLkCallId() string { 1064 if x != nil { 1065 return x.LkCallId 1066 } 1067 return "" 1068 } 1069 1070 func (x *SIPCall) GetSourceIp() string { 1071 if x != nil { 1072 return x.SourceIp 1073 } 1074 return "" 1075 } 1076 1077 func (x *SIPCall) GetAddress() *livekit.SIPUri { 1078 if x != nil { 1079 return x.Address 1080 } 1081 return nil 1082 } 1083 1084 func (x *SIPCall) GetFrom() *livekit.SIPUri { 1085 if x != nil { 1086 return x.From 1087 } 1088 return nil 1089 } 1090 1091 func (x *SIPCall) GetTo() *livekit.SIPUri { 1092 if x != nil { 1093 return x.To 1094 } 1095 return nil 1096 } 1097 1098 func (x *SIPCall) GetVia() []*livekit.SIPUri { 1099 if x != nil { 1100 return x.Via 1101 } 1102 return nil 1103 } 1104 1105 var File_rpc_io_proto protoreflect.FileDescriptor 1106 1107 const file_rpc_io_proto_rawDesc = "" + 1108 "\n" + 1109 "\frpc/io.proto\x12\x03rpc\x1a\x14livekit_egress.proto\x1a\x15livekit_ingress.proto\x1a\x11livekit_sip.proto\x1a\x12livekit_room.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/duration.proto\"/\n" + 1110 "\x10GetEgressRequest\x12\x1b\n" + 1111 "\tegress_id\x18\x01 \x01(\tR\begressId\"\x87\x01\n" + 1112 "\x14UpdateMetricsRequest\x12'\n" + 1113 "\x04info\x18\x01 \x01(\v2\x13.livekit.EgressInfoR\x04info\x12\"\n" + 1114 "\ravg_cpu_usage\x18\x03 \x01(\x02R\vavgCpuUsage\x12\"\n" + 1115 "\rmax_cpu_usage\x18\x04 \x01(\x02R\vmaxCpuUsage\"U\n" + 1116 "\x15GetIngressInfoRequest\x12\x1d\n" + 1117 "\n" + 1118 "ingress_id\x18\x01 \x01(\tR\tingressId\x12\x1d\n" + 1119 "\n" + 1120 "stream_key\x18\x02 \x01(\tR\tstreamKey\"\x88\x02\n" + 1121 "\x16GetIngressInfoResponse\x12(\n" + 1122 "\x04info\x18\x01 \x01(\v2\x14.livekit.IngressInfoR\x04info\x12\x14\n" + 1123 "\x05token\x18\x02 \x01(\tR\x05token\x12\x15\n" + 1124 "\x06ws_url\x18\x03 \x01(\tR\x05wsUrl\x12U\n" + 1125 "\x0elogging_fields\x18\x04 \x03(\v2..rpc.GetIngressInfoResponse.LoggingFieldsEntryR\rloggingFields\x1a@\n" + 1126 "\x12LoggingFieldsEntry\x12\x10\n" + 1127 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 1128 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"g\n" + 1129 "\x19UpdateIngressStateRequest\x12\x1d\n" + 1130 "\n" + 1131 "ingress_id\x18\x01 \x01(\tR\tingressId\x12+\n" + 1132 "\x05state\x18\x02 \x01(\v2\x15.livekit.IngressStateR\x05state\"\xf7\x01\n" + 1133 " GetSIPTrunkAuthenticationRequest\x12\"\n" + 1134 "\vsip_call_id\x18\x06 \x01(\tB\x02\x18\x01R\tsipCallId\x12\x16\n" + 1135 "\x04from\x18\x02 \x01(\tB\x02\x18\x01R\x04from\x12\x1f\n" + 1136 "\tfrom_host\x18\a \x01(\tB\x02\x18\x01R\bfromHost\x12\x12\n" + 1137 "\x02to\x18\x03 \x01(\tB\x02\x18\x01R\x02to\x12\x1b\n" + 1138 "\ato_host\x18\x05 \x01(\tB\x02\x18\x01R\x06toHost\x12#\n" + 1139 "\vsrc_address\x18\x04 \x01(\tB\x02\x18\x01R\n" + 1140 "srcAddress\x12 \n" + 1141 "\x04call\x18\b \x01(\v2\f.rpc.SIPCallR\x04call\"\xb0\x01\n" + 1142 "!GetSIPTrunkAuthenticationResponse\x12\x1a\n" + 1143 "\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" + 1144 "\bpassword\x18\x02 \x01(\tR\bpassword\x12\x12\n" + 1145 "\x04drop\x18\x03 \x01(\bR\x04drop\x12 \n" + 1146 "\fsip_trunk_id\x18\x04 \x01(\tR\n" + 1147 "sipTrunkId\x12\x1d\n" + 1148 "\n" + 1149 "project_id\x18\x05 \x01(\tR\tprojectId\"\xd3\x04\n" + 1150 "\x1fEvaluateSIPDispatchRulesRequest\x12\"\n" + 1151 "\vsip_call_id\x18\b \x01(\tB\x02\x18\x01R\tsipCallId\x120\n" + 1152 "\x12sip_participant_id\x18\x01 \x01(\tB\x02\x18\x01R\x10sipParticipantId\x12 \n" + 1153 "\fsip_trunk_id\x18\n" + 1154 " \x01(\tR\n" + 1155 "sipTrunkId\x12)\n" + 1156 "\x0ecalling_number\x18\x02 \x01(\tB\x02\x18\x01R\rcallingNumber\x12%\n" + 1157 "\fcalling_host\x18\v \x01(\tB\x02\x18\x01R\vcallingHost\x12'\n" + 1158 "\rcalled_number\x18\x03 \x01(\tB\x02\x18\x01R\fcalledNumber\x12#\n" + 1159 "\vsrc_address\x18\x04 \x01(\tB\x02\x18\x01R\n" + 1160 "srcAddress\x12\x10\n" + 1161 "\x03pin\x18\x05 \x01(\tR\x03pin\x12\x15\n" + 1162 "\x06no_pin\x18\x06 \x01(\bR\x05noPin\x12#\n" + 1163 "\vcalled_host\x18\a \x01(\tB\x02\x18\x01R\n" + 1164 "calledHost\x12d\n" + 1165 "\x10extra_attributes\x18\t \x03(\v29.rpc.EvaluateSIPDispatchRulesRequest.ExtraAttributesEntryR\x0fextraAttributes\x12 \n" + 1166 "\x04call\x18\f \x01(\v2\f.rpc.SIPCallR\x04call\x1aB\n" + 1167 "\x14ExtraAttributesEntry\x12\x10\n" + 1168 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 1169 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xbe\f\n" + 1170 " EvaluateSIPDispatchRulesResponse\x12\x1b\n" + 1171 "\troom_name\x18\x01 \x01(\tR\broomName\x121\n" + 1172 "\x14participant_identity\x18\x02 \x01(\tR\x13participantIdentity\x12)\n" + 1173 "\x10participant_name\x18\a \x01(\tR\x0fparticipantName\x121\n" + 1174 "\x14participant_metadata\x18\b \x01(\tR\x13participantMetadata\x12w\n" + 1175 "\x16participant_attributes\x18\v \x03(\v2@.rpc.EvaluateSIPDispatchRulesResponse.ParticipantAttributesEntryR\x15participantAttributes\x12#\n" + 1176 "\vrequest_pin\x18\x03 \x01(\bB\x02\x18\x01R\n" + 1177 "requestPin\x12\x14\n" + 1178 "\x05token\x18\x04 \x01(\tR\x05token\x12\x15\n" + 1179 "\x06ws_url\x18\x05 \x01(\tR\x05wsUrl\x12.\n" + 1180 "\x06result\x18\x06 \x01(\x0e2\x16.rpc.SIPDispatchResultR\x06result\x12 \n" + 1181 "\fsip_trunk_id\x18\t \x01(\tR\n" + 1182 "sipTrunkId\x12/\n" + 1183 "\x14sip_dispatch_rule_id\x18\n" + 1184 " \x01(\tR\x11sipDispatchRuleId\x12\x1d\n" + 1185 "\n" + 1186 "project_id\x18\f \x01(\tR\tprojectId\x12L\n" + 1187 "\aheaders\x18\r \x03(\v22.rpc.EvaluateSIPDispatchRulesResponse.HeadersEntryR\aheaders\x12r\n" + 1188 "\x15headers_to_attributes\x18\x0e \x03(\v2>.rpc.EvaluateSIPDispatchRulesResponse.HeadersToAttributesEntryR\x13headersToAttributes\x12r\n" + 1189 "\x15attributes_to_headers\x18\x12 \x03(\v2>.rpc.EvaluateSIPDispatchRulesResponse.AttributesToHeadersEntryR\x13attributesToHeaders\x12B\n" + 1190 "\x0finclude_headers\x18\x13 \x01(\x0e2\x19.livekit.SIPHeaderOptionsR\x0eincludeHeaders\x12>\n" + 1191 "\x10enabled_features\x18\x0f \x03(\x0e2\x13.livekit.SIPFeatureR\x0fenabledFeatures\x12B\n" + 1192 "\x0fringing_timeout\x18\x10 \x01(\v2\x19.google.protobuf.DurationR\x0eringingTimeout\x12E\n" + 1193 "\x11max_call_duration\x18\x11 \x01(\v2\x19.google.protobuf.DurationR\x0fmaxCallDuration\x12\x1f\n" + 1194 "\vroom_preset\x18\x14 \x01(\tR\n" + 1195 "roomPreset\x12;\n" + 1196 "\vroom_config\x18\x15 \x01(\v2\x1a.livekit.RoomConfigurationR\n" + 1197 "roomConfig\x12F\n" + 1198 "\x10media_encryption\x18\x16 \x01(\x0e2\x1b.livekit.SIPMediaEncryptionR\x0fmediaEncryption\x1aH\n" + 1199 "\x1aParticipantAttributesEntry\x12\x10\n" + 1200 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 1201 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a:\n" + 1202 "\fHeadersEntry\x12\x10\n" + 1203 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 1204 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aF\n" + 1205 "\x18HeadersToAttributesEntry\x12\x10\n" + 1206 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 1207 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aF\n" + 1208 "\x18AttributesToHeadersEntry\x12\x10\n" + 1209 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + 1210 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x8d\x01\n" + 1211 "\x19UpdateSIPCallStateRequest\x121\n" + 1212 "\tcall_info\x18\x01 \x01(\v2\x14.livekit.SIPCallInfoR\bcallInfo\x12=\n" + 1213 "\rtransfer_info\x18\x02 \x01(\v2\x18.livekit.SIPTransferInfoR\ftransferInfo\"\xd8\x01\n" + 1214 "\aSIPCall\x12\x1c\n" + 1215 "\n" + 1216 "lk_call_id\x18\x01 \x01(\tR\blkCallId\x12\x1b\n" + 1217 "\tsource_ip\x18\x02 \x01(\tR\bsourceIp\x12)\n" + 1218 "\aaddress\x18\x03 \x01(\v2\x0f.livekit.SIPUriR\aaddress\x12#\n" + 1219 "\x04from\x18\x04 \x01(\v2\x0f.livekit.SIPUriR\x04from\x12\x1f\n" + 1220 "\x02to\x18\x05 \x01(\v2\x0f.livekit.SIPUriR\x02to\x12!\n" + 1221 "\x03via\x18\x06 \x03(\v2\x0f.livekit.SIPUriR\x03via*`\n" + 1222 "\x11SIPDispatchResult\x12\x18\n" + 1223 "\x14LEGACY_ACCEPT_OR_PIN\x10\x00\x12\n" + 1224 "\n" + 1225 "\x06ACCEPT\x10\x01\x12\x0f\n" + 1226 "\vREQUEST_PIN\x10\x02\x12\n" + 1227 "\n" + 1228 "\x06REJECT\x10\x03\x12\b\n" + 1229 "\x04DROP\x10\x042\xc1\x06\n" + 1230 "\x06IOInfo\x12;\n" + 1231 "\fCreateEgress\x12\x13.livekit.EgressInfo\x1a\x16.google.protobuf.Empty\x12;\n" + 1232 "\fUpdateEgress\x12\x13.livekit.EgressInfo\x1a\x16.google.protobuf.Empty\x127\n" + 1233 "\tGetEgress\x12\x15.rpc.GetEgressRequest\x1a\x13.livekit.EgressInfo\x12E\n" + 1234 "\n" + 1235 "ListEgress\x12\x1a.livekit.ListEgressRequest\x1a\x1b.livekit.ListEgressResponse\x12B\n" + 1236 "\rUpdateMetrics\x12\x19.rpc.UpdateMetricsRequest\x1a\x16.google.protobuf.Empty\x12=\n" + 1237 "\rCreateIngress\x12\x14.livekit.IngressInfo\x1a\x16.google.protobuf.Empty\x12I\n" + 1238 "\x0eGetIngressInfo\x12\x1a.rpc.GetIngressInfoRequest\x1a\x1b.rpc.GetIngressInfoResponse\x12L\n" + 1239 "\x12UpdateIngressState\x12\x1e.rpc.UpdateIngressStateRequest\x1a\x16.google.protobuf.Empty\x12j\n" + 1240 "\x19GetSIPTrunkAuthentication\x12%.rpc.GetSIPTrunkAuthenticationRequest\x1a&.rpc.GetSIPTrunkAuthenticationResponse\x12g\n" + 1241 "\x18EvaluateSIPDispatchRules\x12$.rpc.EvaluateSIPDispatchRulesRequest\x1a%.rpc.EvaluateSIPDispatchRulesResponse\x12L\n" + 1242 "\x12UpdateSIPCallState\x12\x1e.rpc.UpdateSIPCallStateRequest\x1a\x16.google.protobuf.EmptyB!Z\x1fgithub.com/livekit/protocol/rpcb\x06proto3" 1243 1244 var ( 1245 file_rpc_io_proto_rawDescOnce sync.Once 1246 file_rpc_io_proto_rawDescData []byte 1247 ) 1248 1249 func file_rpc_io_proto_rawDescGZIP() []byte { 1250 file_rpc_io_proto_rawDescOnce.Do(func() { 1251 file_rpc_io_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rpc_io_proto_rawDesc), len(file_rpc_io_proto_rawDesc))) 1252 }) 1253 return file_rpc_io_proto_rawDescData 1254 } 1255 1256 var file_rpc_io_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 1257 var file_rpc_io_proto_msgTypes = make([]protoimpl.MessageInfo, 17) 1258 var file_rpc_io_proto_goTypes = []any{ 1259 (SIPDispatchResult)(0), // 0: rpc.SIPDispatchResult 1260 (*GetEgressRequest)(nil), // 1: rpc.GetEgressRequest 1261 (*UpdateMetricsRequest)(nil), // 2: rpc.UpdateMetricsRequest 1262 (*GetIngressInfoRequest)(nil), // 3: rpc.GetIngressInfoRequest 1263 (*GetIngressInfoResponse)(nil), // 4: rpc.GetIngressInfoResponse 1264 (*UpdateIngressStateRequest)(nil), // 5: rpc.UpdateIngressStateRequest 1265 (*GetSIPTrunkAuthenticationRequest)(nil), // 6: rpc.GetSIPTrunkAuthenticationRequest 1266 (*GetSIPTrunkAuthenticationResponse)(nil), // 7: rpc.GetSIPTrunkAuthenticationResponse 1267 (*EvaluateSIPDispatchRulesRequest)(nil), // 8: rpc.EvaluateSIPDispatchRulesRequest 1268 (*EvaluateSIPDispatchRulesResponse)(nil), // 9: rpc.EvaluateSIPDispatchRulesResponse 1269 (*UpdateSIPCallStateRequest)(nil), // 10: rpc.UpdateSIPCallStateRequest 1270 (*SIPCall)(nil), // 11: rpc.SIPCall 1271 nil, // 12: rpc.GetIngressInfoResponse.LoggingFieldsEntry 1272 nil, // 13: rpc.EvaluateSIPDispatchRulesRequest.ExtraAttributesEntry 1273 nil, // 14: rpc.EvaluateSIPDispatchRulesResponse.ParticipantAttributesEntry 1274 nil, // 15: rpc.EvaluateSIPDispatchRulesResponse.HeadersEntry 1275 nil, // 16: rpc.EvaluateSIPDispatchRulesResponse.HeadersToAttributesEntry 1276 nil, // 17: rpc.EvaluateSIPDispatchRulesResponse.AttributesToHeadersEntry 1277 (*livekit.EgressInfo)(nil), // 18: livekit.EgressInfo 1278 (*livekit.IngressInfo)(nil), // 19: livekit.IngressInfo 1279 (*livekit.IngressState)(nil), // 20: livekit.IngressState 1280 (livekit.SIPHeaderOptions)(0), // 21: livekit.SIPHeaderOptions 1281 (livekit.SIPFeature)(0), // 22: livekit.SIPFeature 1282 (*durationpb.Duration)(nil), // 23: google.protobuf.Duration 1283 (*livekit.RoomConfiguration)(nil), // 24: livekit.RoomConfiguration 1284 (livekit.SIPMediaEncryption)(0), // 25: livekit.SIPMediaEncryption 1285 (*livekit.SIPCallInfo)(nil), // 26: livekit.SIPCallInfo 1286 (*livekit.SIPTransferInfo)(nil), // 27: livekit.SIPTransferInfo 1287 (*livekit.SIPUri)(nil), // 28: livekit.SIPUri 1288 (*livekit.ListEgressRequest)(nil), // 29: livekit.ListEgressRequest 1289 (*emptypb.Empty)(nil), // 30: google.protobuf.Empty 1290 (*livekit.ListEgressResponse)(nil), // 31: livekit.ListEgressResponse 1291 } 1292 var file_rpc_io_proto_depIdxs = []int32{ 1293 18, // 0: rpc.UpdateMetricsRequest.info:type_name -> livekit.EgressInfo 1294 19, // 1: rpc.GetIngressInfoResponse.info:type_name -> livekit.IngressInfo 1295 12, // 2: rpc.GetIngressInfoResponse.logging_fields:type_name -> rpc.GetIngressInfoResponse.LoggingFieldsEntry 1296 20, // 3: rpc.UpdateIngressStateRequest.state:type_name -> livekit.IngressState 1297 11, // 4: rpc.GetSIPTrunkAuthenticationRequest.call:type_name -> rpc.SIPCall 1298 13, // 5: rpc.EvaluateSIPDispatchRulesRequest.extra_attributes:type_name -> rpc.EvaluateSIPDispatchRulesRequest.ExtraAttributesEntry 1299 11, // 6: rpc.EvaluateSIPDispatchRulesRequest.call:type_name -> rpc.SIPCall 1300 14, // 7: rpc.EvaluateSIPDispatchRulesResponse.participant_attributes:type_name -> rpc.EvaluateSIPDispatchRulesResponse.ParticipantAttributesEntry 1301 0, // 8: rpc.EvaluateSIPDispatchRulesResponse.result:type_name -> rpc.SIPDispatchResult 1302 15, // 9: rpc.EvaluateSIPDispatchRulesResponse.headers:type_name -> rpc.EvaluateSIPDispatchRulesResponse.HeadersEntry 1303 16, // 10: rpc.EvaluateSIPDispatchRulesResponse.headers_to_attributes:type_name -> rpc.EvaluateSIPDispatchRulesResponse.HeadersToAttributesEntry 1304 17, // 11: rpc.EvaluateSIPDispatchRulesResponse.attributes_to_headers:type_name -> rpc.EvaluateSIPDispatchRulesResponse.AttributesToHeadersEntry 1305 21, // 12: rpc.EvaluateSIPDispatchRulesResponse.include_headers:type_name -> livekit.SIPHeaderOptions 1306 22, // 13: rpc.EvaluateSIPDispatchRulesResponse.enabled_features:type_name -> livekit.SIPFeature 1307 23, // 14: rpc.EvaluateSIPDispatchRulesResponse.ringing_timeout:type_name -> google.protobuf.Duration 1308 23, // 15: rpc.EvaluateSIPDispatchRulesResponse.max_call_duration:type_name -> google.protobuf.Duration 1309 24, // 16: rpc.EvaluateSIPDispatchRulesResponse.room_config:type_name -> livekit.RoomConfiguration 1310 25, // 17: rpc.EvaluateSIPDispatchRulesResponse.media_encryption:type_name -> livekit.SIPMediaEncryption 1311 26, // 18: rpc.UpdateSIPCallStateRequest.call_info:type_name -> livekit.SIPCallInfo 1312 27, // 19: rpc.UpdateSIPCallStateRequest.transfer_info:type_name -> livekit.SIPTransferInfo 1313 28, // 20: rpc.SIPCall.address:type_name -> livekit.SIPUri 1314 28, // 21: rpc.SIPCall.from:type_name -> livekit.SIPUri 1315 28, // 22: rpc.SIPCall.to:type_name -> livekit.SIPUri 1316 28, // 23: rpc.SIPCall.via:type_name -> livekit.SIPUri 1317 18, // 24: rpc.IOInfo.CreateEgress:input_type -> livekit.EgressInfo 1318 18, // 25: rpc.IOInfo.UpdateEgress:input_type -> livekit.EgressInfo 1319 1, // 26: rpc.IOInfo.GetEgress:input_type -> rpc.GetEgressRequest 1320 29, // 27: rpc.IOInfo.ListEgress:input_type -> livekit.ListEgressRequest 1321 2, // 28: rpc.IOInfo.UpdateMetrics:input_type -> rpc.UpdateMetricsRequest 1322 19, // 29: rpc.IOInfo.CreateIngress:input_type -> livekit.IngressInfo 1323 3, // 30: rpc.IOInfo.GetIngressInfo:input_type -> rpc.GetIngressInfoRequest 1324 5, // 31: rpc.IOInfo.UpdateIngressState:input_type -> rpc.UpdateIngressStateRequest 1325 6, // 32: rpc.IOInfo.GetSIPTrunkAuthentication:input_type -> rpc.GetSIPTrunkAuthenticationRequest 1326 8, // 33: rpc.IOInfo.EvaluateSIPDispatchRules:input_type -> rpc.EvaluateSIPDispatchRulesRequest 1327 10, // 34: rpc.IOInfo.UpdateSIPCallState:input_type -> rpc.UpdateSIPCallStateRequest 1328 30, // 35: rpc.IOInfo.CreateEgress:output_type -> google.protobuf.Empty 1329 30, // 36: rpc.IOInfo.UpdateEgress:output_type -> google.protobuf.Empty 1330 18, // 37: rpc.IOInfo.GetEgress:output_type -> livekit.EgressInfo 1331 31, // 38: rpc.IOInfo.ListEgress:output_type -> livekit.ListEgressResponse 1332 30, // 39: rpc.IOInfo.UpdateMetrics:output_type -> google.protobuf.Empty 1333 30, // 40: rpc.IOInfo.CreateIngress:output_type -> google.protobuf.Empty 1334 4, // 41: rpc.IOInfo.GetIngressInfo:output_type -> rpc.GetIngressInfoResponse 1335 30, // 42: rpc.IOInfo.UpdateIngressState:output_type -> google.protobuf.Empty 1336 7, // 43: rpc.IOInfo.GetSIPTrunkAuthentication:output_type -> rpc.GetSIPTrunkAuthenticationResponse 1337 9, // 44: rpc.IOInfo.EvaluateSIPDispatchRules:output_type -> rpc.EvaluateSIPDispatchRulesResponse 1338 30, // 45: rpc.IOInfo.UpdateSIPCallState:output_type -> google.protobuf.Empty 1339 35, // [35:46] is the sub-list for method output_type 1340 24, // [24:35] is the sub-list for method input_type 1341 24, // [24:24] is the sub-list for extension type_name 1342 24, // [24:24] is the sub-list for extension extendee 1343 0, // [0:24] is the sub-list for field type_name 1344 } 1345 1346 func init() { file_rpc_io_proto_init() } 1347 func file_rpc_io_proto_init() { 1348 if File_rpc_io_proto != nil { 1349 return 1350 } 1351 type x struct{} 1352 out := protoimpl.TypeBuilder{ 1353 File: protoimpl.DescBuilder{ 1354 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1355 RawDescriptor: unsafe.Slice(unsafe.StringData(file_rpc_io_proto_rawDesc), len(file_rpc_io_proto_rawDesc)), 1356 NumEnums: 1, 1357 NumMessages: 17, 1358 NumExtensions: 0, 1359 NumServices: 1, 1360 }, 1361 GoTypes: file_rpc_io_proto_goTypes, 1362 DependencyIndexes: file_rpc_io_proto_depIdxs, 1363 EnumInfos: file_rpc_io_proto_enumTypes, 1364 MessageInfos: file_rpc_io_proto_msgTypes, 1365 }.Build() 1366 File_rpc_io_proto = out.File 1367 file_rpc_io_proto_goTypes = nil 1368 file_rpc_io_proto_depIdxs = nil 1369 }