@voicenter-team/opensips-js 1.0.141 → 1.0.142

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
@@ -735,6 +735,8 @@ declare interface MSRPSessionExtended extends MSRPSession_2 {
735
735
 
736
736
  declare type MSRPSessionListener = IncomingMSRPSessionListener | OutgoingMSRPSessionListener;
737
737
 
738
+ declare type OnTransportCallback = (parsed: object, message: string) => void
739
+
738
740
  declare interface OpenSIPSEventMap extends UAEventMap {
739
741
  ready: readyListener
740
742
  connection: connectionListener
@@ -912,6 +914,7 @@ declare interface TriggerListenerOptions {
912
914
 
913
915
  declare type UAConfigurationExtended = UAConfiguration & {
914
916
  overrideUserAgent?: (userAgent: string) => string
917
+ onTransportCallback?: OnTransportCallback
915
918
  }
916
919
 
917
920
  declare const UAConstructor: typeof UA;
@@ -927,6 +930,7 @@ declare class UAExtended extends UAConstructor implements UAExtendedInterface {
927
930
  _janus_sessions: any[];
928
931
  protected newStreamPlugins: Array<BaseNewStreamPlugin>;
929
932
  protected processStreamPlugins: Array<BaseProcessStreamPlugin>;
933
+ protected onTransportCallback: OnTransportCallback;
930
934
  constructor(configuration: UAConfiguration);
931
935
  call(target: string, options?: CallOptionsExtended): RTCSession;
932
936
  joinVideoCall(target: string, displayName: string, options: VideoConferenceJoinOptions): any;