Skip to content
Merged
Changes from 2 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
5 changes: 5 additions & 0 deletions packages/livekit-server-sdk/src/SipClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
RoomConfiguration,
SIPHeaderOptions,
} from '@livekit/protocol';
import {

Check warning on line 11 in packages/livekit-server-sdk/src/SipClient.ts

View workflow job for this annotation

GitHub Actions / Formatting

Imports "SIPMediaEncryption" and "SIPOutboundConfig" are only used as type
CreateSIPDispatchRuleRequest,
CreateSIPInboundTrunkRequest,
CreateSIPOutboundTrunkRequest,
Expand Down Expand Up @@ -81,6 +81,8 @@
includeHeaders?: SIPHeaderOptions;
krispEnabled?: boolean;
mediaEncryption?: SIPMediaEncryption;
/** Maximum time for a call to ring in seconds. */
ringingTimeout?: number;
}
export interface CreateSipOutboundTrunkOptions {
metadata?: string;
Expand Down Expand Up @@ -314,6 +316,9 @@
includeHeaders: opts.includeHeaders,
krispEnabled: opts.krispEnabled,
mediaEncryption: opts.mediaEncryption,
ringingTimeout: opts.ringingTimeout
? new Duration({ seconds: BigInt(opts.ringingTimeout) })
: undefined,
}),
}).toJson();

Expand Down
Loading