@@ -223,6 +223,19 @@ enum SIPMediaEncryption {
223223 SIP_MEDIA_ENCRYPT_REQUIRE = 2 ; // require encryption
224224}
225225
226+ message SIPCodec {
227+ string name = 1 ;
228+ uint32 rate = 2 ;
229+ }
230+
231+ message SIPMediaConfig {
232+ // if set, ignore the default codecs and use the list below.
233+ bool only_listed_codecs = 1 ;
234+ // List of allowed codecs. If only_listed_codecs is not set, this list is added to default codecs.
235+ repeated SIPCodec codecs = 2 ;
236+ SIPMediaEncryption encryption = 3 ;
237+ }
238+
226239message ProviderInfo {
227240 string id = 1 ;
228241 string name = 2 ;
@@ -649,13 +662,14 @@ message SIPDispatchRuleInfo {
649662 // RoomConfiguration to use if the participant initiates the room
650663 RoomConfiguration room_config = 10 ;
651664
665+ SIPMediaConfig media = 16 ;
652666 bool krisp_enabled = 11 ;
653- SIPMediaEncryption media_encryption = 12 ;
667+ SIPMediaEncryption media_encryption = 12 [ deprecated = true ] ;
654668
655669 google.protobuf.Timestamp created_at = 14 ;
656670 google.protobuf.Timestamp updated_at = 15 ;
657671
658- // NEXT ID: 16
672+ // NEXT ID: 17
659673}
660674
661675message SIPDispatchRuleUpdate {
@@ -670,7 +684,8 @@ message SIPDispatchRuleUpdate {
670684 (logger.redact ) = true ,
671685 (logger.redact_format ) = "<redacted ({{ .Size }} bytes)>"
672686 ];
673- optional SIPMediaEncryption media_encryption = 6 ;
687+ optional SIPMediaEncryption media_encryption = 6 [deprecated =true ];
688+ SIPMediaConfig media = 7 ;
674689}
675690
676691// ListSIPDispatchRuleRequest lists dispatch rules for given filters. If no filters are set, all rules are listed.
@@ -788,7 +803,8 @@ message CreateSIPParticipantRequest {
788803 // Enable voice isolation for the callee.
789804 bool krisp_enabled = 14 ;
790805
791- SIPMediaEncryption media_encryption = 18 ;
806+ SIPMediaEncryption media_encryption = 18 [deprecated = true ];
807+ SIPMediaConfig media = 23 ;
792808
793809 // Wait for the answer for the call before returning.
794810 bool wait_until_answered = 19 ;
@@ -804,7 +820,7 @@ message CreateSIPParticipantRequest {
804820 (logger.redact_format ) = "<redacted ({{ .Size }} bytes)>"
805821 ];
806822 optional Destination destination = 22 ;
807- // NEXT ID: 23
823+ // NEXT ID: 24
808824}
809825
810826message SIPParticipantInfo {
0 commit comments