Skip to content

Commit 9edbac9

Browse files
Add media encryption field to inbound and outbound SIP trunks (#570)
* Add media encryption field to inbound and outbound SIP trunks * Add media encryption field to SIP trunks Add a media encryption field to both inbound and outbound SIP trunks. --------- Co-authored-by: lukasIO <[email protected]>
1 parent b0d61fd commit 9edbac9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/nine-frogs-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"livekit-server-sdk": patch
3+
---
4+
5+
Add media encryption field to inbound and outbound SIP trunks

packages/livekit-server-sdk/src/SipClient.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
SIPDispatchRuleIndividual,
3030
SIPDispatchRuleInfo,
3131
SIPInboundTrunkInfo,
32+
SIPMediaEncryption,
3233
SIPOutboundConfig,
3334
SIPOutboundTrunkInfo,
3435
SIPParticipantInfo,
@@ -79,6 +80,7 @@ export interface CreateSipInboundTrunkOptions {
7980
// Map SIP response headers from INVITE to sip.h.* participant attributes automatically.
8081
includeHeaders?: SIPHeaderOptions;
8182
krispEnabled?: boolean;
83+
mediaEncryption?: SIPMediaEncryption;
8284
}
8385
export interface CreateSipOutboundTrunkOptions {
8486
metadata?: string;
@@ -94,6 +96,7 @@ export interface CreateSipOutboundTrunkOptions {
9496
headersToAttributes?: { [key: string]: string };
9597
// Map SIP response headers from INVITE to sip.h.* participant attributes automatically.
9698
includeHeaders?: SIPHeaderOptions;
99+
mediaEncryption?: SIPMediaEncryption;
97100
}
98101

99102
export interface SipDispatchRuleDirect {
@@ -189,6 +192,7 @@ export interface SipInboundTrunkUpdateOptions {
189192
authPassword?: string;
190193
name?: string;
191194
metadata?: string;
195+
mediaEncryption?: SIPMediaEncryption;
192196
}
193197

194198
export interface SipOutboundTrunkUpdateOptions {
@@ -200,6 +204,7 @@ export interface SipOutboundTrunkUpdateOptions {
200204
destinationCountry?: string;
201205
name?: string;
202206
metadata?: string;
207+
mediaEncryption?: SIPMediaEncryption;
203208
}
204209

205210
export interface TransferSipParticipantOptions {
@@ -306,6 +311,7 @@ export class SipClient extends ServiceBase {
306311
headersToAttributes: opts.headersToAttributes,
307312
includeHeaders: opts.includeHeaders,
308313
krispEnabled: opts.krispEnabled,
314+
mediaEncryption: opts.mediaEncryption,
309315
}),
310316
}).toJson();
311317

@@ -352,6 +358,7 @@ export class SipClient extends ServiceBase {
352358
headersToAttributes: opts.headersToAttributes,
353359
includeHeaders: opts.includeHeaders,
354360
destinationCountry: opts.destinationCountry,
361+
mediaEncryption: opts.mediaEncryption,
355362
}),
356363
}).toJson();
357364

0 commit comments

Comments
 (0)