opensips-js 0.1.32 → 0.1.33

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/dist/index.d.ts CHANGED
@@ -74,6 +74,9 @@ declare class AudioModule {
74
74
  private vadSessionsState;
75
75
  private vadIntervals;
76
76
  private vadMrsIntervals;
77
+ private ringbackTimers;
78
+ private ringbackAudioContexts;
79
+ private ringbackSessionProgressReceived;
77
80
  private VUMeter;
78
81
  private MicVAD;
79
82
  managedAudioContext: ManagedAudioContext;
@@ -208,6 +211,28 @@ declare class AudioModule {
208
211
  muteCaller(callId: string): void;
209
212
  unmuteCaller(callId: string): void;
210
213
  terminateCall(callId: string): void;
214
+ /**
215
+ * Handle SIP response for ringback tone logic
216
+ * Called from onTransportData when 100/180/183 responses are received
217
+ * Can be called with either session ID or call_id from SIP message
218
+ * @param identifier - The call/session ID or SIP call_id
219
+ * @param statusCode - SIP status code (100, 180, or 183)
220
+ */
221
+ handleSipResponseForRingback(identifier: string, statusCode: number): void;
222
+ /**
223
+ * Start playing a local ringback tone (beep sound) for a session
224
+ * Standard ringback tone pattern: 440Hz + 480Hz, 1 second on, 3 seconds off
225
+ */
226
+ private startLocalRingbackTone;
227
+ /**
228
+ * Stop playing the local ringback tone for a session
229
+ */
230
+ private stopLocalRingbackTone;
231
+ /**
232
+ * Clean up ringback tone resources for a session
233
+ * Called when call ends, fails, or is confirmed
234
+ */
235
+ private cleanupRingbackTone;
211
236
  transferCall(callId: string, target: string): Error;
212
237
  mergeCall(roomId: number): void;
213
238
  mergeCallByIds(firstCallId: string, secondCallId: string): void;