@voicenter-team/opensips-js 1.0.141 → 1.0.143

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
@@ -205,7 +205,7 @@ Also, there are next public fields on OpensipsJS instance:
205
205
  ## Audio
206
206
 
207
207
  ### Audio methods
208
- - `initCall(target: String, addToCurrentRoom: Boolean): void` - call to the target. If addToCurrentRoom is true then the call will be added to the user's current room
208
+ - `initCall(target: String, addToCurrentRoom: Boolean, holdOtherCalls: Boolean): void` - call to the target. If addToCurrentRoom is true then the call will be added to the user's current room
209
209
  - `holdCall(callId: String, automatic?: Boolean): Promise<void>` - put call on hold
210
210
  - `unholdCall(callId: String): Promise<void>` - unhold a call
211
211
  - `terminateCall(callId: String): void` - terminate call
package/dist/index.d.ts CHANGED
@@ -387,6 +387,7 @@ declare interface ICallStatus {
387
387
  isMoving: boolean
388
388
  isTransferring: boolean
389
389
  isMerging: boolean
390
+ isTransferred: boolean
390
391
  }
391
392
 
392
393
  declare interface IMessage extends MSRPSessionExtended {
@@ -735,6 +736,8 @@ declare interface MSRPSessionExtended extends MSRPSession_2 {
735
736
 
736
737
  declare type MSRPSessionListener = IncomingMSRPSessionListener | OutgoingMSRPSessionListener;
737
738
 
739
+ declare type OnTransportCallback = (parsed: object, message: string) => void
740
+
738
741
  declare interface OpenSIPSEventMap extends UAEventMap {
739
742
  ready: readyListener
740
743
  connection: connectionListener
@@ -912,6 +915,7 @@ declare interface TriggerListenerOptions {
912
915
 
913
916
  declare type UAConfigurationExtended = UAConfiguration & {
914
917
  overrideUserAgent?: (userAgent: string) => string
918
+ onTransportCallback?: OnTransportCallback
915
919
  }
916
920
 
917
921
  declare const UAConstructor: typeof UA;
@@ -927,6 +931,7 @@ declare class UAExtended extends UAConstructor implements UAExtendedInterface {
927
931
  _janus_sessions: any[];
928
932
  protected newStreamPlugins: Array<BaseNewStreamPlugin>;
929
933
  protected processStreamPlugins: Array<BaseProcessStreamPlugin>;
934
+ protected onTransportCallback: OnTransportCallback;
930
935
  constructor(configuration: UAConfiguration);
931
936
  call(target: string, options?: CallOptionsExtended): RTCSession;
932
937
  joinVideoCall(target: string, displayName: string, options: VideoConferenceJoinOptions): any;