livekit-server-sdk 2.15.0 → 2.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/SipClient.ts CHANGED
@@ -81,6 +81,8 @@ export interface CreateSipInboundTrunkOptions {
81
81
  includeHeaders?: SIPHeaderOptions;
82
82
  krispEnabled?: boolean;
83
83
  mediaEncryption?: SIPMediaEncryption;
84
+ /** Maximum time for a call to ring in seconds. */
85
+ ringingTimeout?: number;
84
86
  }
85
87
  export interface CreateSipOutboundTrunkOptions {
86
88
  metadata?: string;
@@ -210,6 +212,8 @@ export interface SipOutboundTrunkUpdateOptions {
210
212
  export interface TransferSipParticipantOptions {
211
213
  playDialtone?: boolean;
212
214
  headers?: { [key: string]: string };
215
+ /** Maximum time for the transfer destination to answer the call, in seconds. */
216
+ ringingTimeout?: number;
213
217
  }
214
218
 
215
219
  /**
@@ -312,6 +316,9 @@ export class SipClient extends ServiceBase {
312
316
  includeHeaders: opts.includeHeaders,
313
317
  krispEnabled: opts.krispEnabled,
314
318
  mediaEncryption: opts.mediaEncryption,
319
+ ringingTimeout: opts.ringingTimeout
320
+ ? new Duration({ seconds: BigInt(opts.ringingTimeout) })
321
+ : undefined,
315
322
  }),
316
323
  }).toJson();
317
324
 
@@ -789,6 +796,9 @@ export class SipClient extends ServiceBase {
789
796
  transferTo: transferTo,
790
797
  playDialtone: opts.playDialtone,
791
798
  headers: opts.headers,
799
+ ringingTimeout: opts.ringingTimeout
800
+ ? new Duration({ seconds: BigInt(opts.ringingTimeout) })
801
+ : undefined,
792
802
  }).toJson();
793
803
 
794
804
  await this.rpc.request(