@voicenter-team/opensips-js 1.0.76 → 1.0.78
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +129 -37
- package/dist/index.d.ts +247 -164
- package/dist/opensips-js.cjs.js +102 -102
- package/dist/opensips-js.es.js +11618 -8632
- package/dist/opensips-js.iife.js +102 -102
- package/dist/opensips-js.umd.js +102 -102
- package/package.json +3 -2
- package/src/types/rtc.d.ts +10 -1
- package/src/types/timer.d.ts +6 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@voicenter-team/opensips-js",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.78",
|
4
4
|
"description": "The JS package for opensips",
|
5
5
|
"default": "src/index.ts",
|
6
6
|
"jsdelivr": "dist/opensips-js.umd.js",
|
@@ -58,7 +58,8 @@
|
|
58
58
|
"jssip": "3.10.0",
|
59
59
|
"loglevel": "^1.8.1",
|
60
60
|
"mime": "^3.0.0",
|
61
|
-
"p-iteration": "^1.1.8"
|
61
|
+
"p-iteration": "^1.1.8",
|
62
|
+
"sdp-transform": "2.14.1"
|
62
63
|
},
|
63
64
|
"files": [
|
64
65
|
"dist",
|
package/src/types/rtc.d.ts
CHANGED
@@ -14,6 +14,8 @@ import {
|
|
14
14
|
} from 'jssip/lib/SIPMessage'
|
15
15
|
import { UAConfiguration } from 'jssip/lib/UA'
|
16
16
|
|
17
|
+
import { MODULES } from '@/enum/modules'
|
18
|
+
|
17
19
|
export type IntervalType = ReturnType<typeof setInterval>
|
18
20
|
|
19
21
|
export type ListenerEventType = EndEvent | IncomingEvent | OutgoingEvent | IncomingAckEvent | OutgoingAckEvent
|
@@ -121,6 +123,12 @@ export type IRoomUpdate = Omit<IRoom, 'started'> & {
|
|
121
123
|
started?: Date
|
122
124
|
}
|
123
125
|
|
126
|
+
export type AudioModuleName = typeof MODULES.AUDIO
|
127
|
+
export type VideoModuleName = typeof MODULES.VIDEO
|
128
|
+
export type MSRPModuleName = typeof MODULES.MSRP
|
129
|
+
|
130
|
+
export type Modules = AudioModuleName | VideoModuleName | MSRPModuleName
|
131
|
+
|
124
132
|
export interface IOpenSIPSJSOptions {
|
125
133
|
configuration: Omit<UAConfiguration, 'sockets'>,
|
126
134
|
socketInterfaces: [ string ]
|
@@ -129,7 +137,8 @@ export interface IOpenSIPSJSOptions {
|
|
129
137
|
session_timers: boolean
|
130
138
|
extraHeaders: [ string ]
|
131
139
|
pcConfig: RTCConfiguration
|
132
|
-
}
|
140
|
+
},
|
141
|
+
modules: Array<Modules>
|
133
142
|
}
|
134
143
|
|
135
144
|
export interface TriggerListenerOptions {
|