@voicenter-team/opensips-js 1.0.78 → 1.0.80

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voicenter-team/opensips-js",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "The JS package for opensips",
5
5
  "default": "src/index.ts",
6
6
  "jsdelivr": "dist/opensips-js.umd.js",
@@ -16,6 +16,8 @@ import { UAConfiguration } from 'jssip/lib/UA'
16
16
 
17
17
  import { MODULES } from '@/enum/modules'
18
18
 
19
+ import { ExtraContactParams } from 'jssip/lib/Registrator'
20
+
19
21
  export type IntervalType = ReturnType<typeof setInterval>
20
22
 
21
23
  export type ListenerEventType = EndEvent | IncomingEvent | OutgoingEvent | IncomingAckEvent | OutgoingAckEvent
@@ -129,8 +131,11 @@ export type MSRPModuleName = typeof MODULES.MSRP
129
131
 
130
132
  export type Modules = AudioModuleName | VideoModuleName | MSRPModuleName
131
133
 
134
+ export type IOpenSIPSConfiguration = Omit<UAConfiguration, 'sockets'>
135
+
132
136
  export interface IOpenSIPSJSOptions {
133
- configuration: Omit<UAConfiguration, 'sockets'>,
137
+ configuration: IOpenSIPSConfiguration
138
+ pnExtraHeaders: ExtraContactParams
134
139
  socketInterfaces: [ string ]
135
140
  sipDomain: string
136
141
  sipOptions: {