@voicenter-team/opensips-js 1.0.86 → 1.0.88

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/README.md CHANGED
@@ -97,6 +97,7 @@ Also, there are next public fields on OpensipsJS instance:
97
97
  - `moveCall(callId: String, roomId: Number): Promise<void>` - Same as callChangeRoom. Move call to the specific room
98
98
  - `transferCall(callId: String, target: String): void` - transfer call to target
99
99
  - `mergeCall(roomId: Number): void` - merge calls in specific room. Works only for rooms with 2 calls inside
100
+ - `mergeCallByIds(firstCallId: string, secondCallId: string): void` - merge 2 calls by their ids
100
101
  - `answerCall(callId: String): void` - answer a call
101
102
  - `mute(): void` - mute ourself
102
103
  - `unmute(): void` - unmute ourself
package/dist/index.d.ts CHANGED
@@ -163,6 +163,7 @@ declare class AudioModule {
163
163
  terminateCall(callId: string): void;
164
164
  transferCall(callId: string, target: string): Error;
165
165
  mergeCall(roomId: number): void;
166
+ mergeCallByIds(firstCallId: string, secondCallId: string): void;
166
167
  setDND(value: boolean): void;
167
168
  private startCallTimer;
168
169
  setActiveRoom(roomId: number | undefined): Promise<void>;
@@ -230,6 +231,8 @@ declare type changeIsDNDListener = (value: boolean) => void
230
231
 
231
232
  declare type changeIsMutedListener = (value: boolean) => void
232
233
 
234
+ declare type changeMainVideoStreamListener = (event: { name: string, event: MediaStream }) => void
235
+
233
236
  declare type changeMuteWhenJoinListener = (value: boolean) => void
234
237
 
235
238
  declare type ChangeVolumeEventType = {
@@ -373,6 +376,8 @@ declare type ListenerEventType = EndEvent | IncomingEvent | OutgoingEvent | Inco
373
376
 
374
377
  declare type ListenersKeyType = keyof OpenSIPSEventMap
375
378
 
379
+ declare type memberJoinListener = (event: object) => void
380
+
376
381
  declare const MODULES: {
377
382
  readonly AUDIO: "audio";
378
383
  readonly VIDEO: "video";
@@ -641,6 +646,8 @@ declare interface OpenSIPSEventMap extends UAEventMap {
641
646
  changeCallVolume: changeCallVolumeListener
642
647
  newMSRPMessage: MSRPMessageListener
643
648
  newMSRPSession: MSRPSessionListener
649
+ changeMainVideoStream: changeMainVideoStreamListener
650
+ memberJoin: memberJoinListener
644
651
  }
645
652
 
646
653
  declare class OpenSIPSJS extends UAExtended {
@@ -830,6 +837,7 @@ declare class VideoModule {
830
837
  constructor(context: any);
831
838
  get sipOptions(): any;
832
839
  initCall(target: string, displayName: string): void;
840
+ stop(options?: {}): void;
833
841
  }
834
842
 
835
843
  declare type VideoModuleName = typeof MODULES.VIDEO