@voicenter-team/opensips-js 1.0.22 → 1.0.45
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +732 -0
- package/dist/opensips-js.cjs.js +155 -0
- package/dist/opensips-js.es.js +21367 -0
- package/dist/opensips-js.iife.js +155 -0
- package/dist/opensips-js.umd.js +155 -0
- package/package.json +14 -8
- package/src/types/Dialog.d.ts +7 -0
- package/src/types/Socket.d.ts +8 -0
- package/src/types/UAExtended.d.ts +22 -14
- package/src/types/listeners.d.ts +12 -4
- package/src/types/msrp.d.ts +15 -9
- package/src/types/rtc.d.ts +15 -5
- package/src/types/timer.d.ts +7 -0
- package/build/enum/call.event.listener.type.d.ts +0 -7
- package/build/enum/call.event.listener.type.js +0 -10
- package/build/enum/message.event.listener.type.d.ts +0 -5
- package/build/enum/message.event.listener.type.js +0 -8
- package/build/enum/metric.keys.to.include.d.ts +0 -2
- package/build/enum/metric.keys.to.include.js +0 -4
- package/build/enum/session.direction.enum.d.ts +0 -2
- package/build/enum/session.direction.enum.js +0 -5
- package/build/helpers/UA/index.d.ts +0 -41
- package/build/helpers/UA/index.js +0 -318
- package/build/helpers/audio.helper.d.ts +0 -15
- package/build/helpers/audio.helper.js +0 -97
- package/build/helpers/filter.helper.d.ts +0 -2
- package/build/helpers/filter.helper.js +0 -14
- package/build/helpers/jssip.d.ts +0 -5
- package/build/helpers/jssip.js +0 -30
- package/build/helpers/time.helper.d.ts +0 -16
- package/build/helpers/time.helper.js +0 -28
- package/build/helpers/volume.helper.d.ts +0 -2
- package/build/helpers/volume.helper.js +0 -76
- package/build/helpers/webrtcmetrics/collector.d.ts +0 -32
- package/build/helpers/webrtcmetrics/collector.js +0 -282
- package/build/helpers/webrtcmetrics/engine.d.ts +0 -20
- package/build/helpers/webrtcmetrics/engine.js +0 -164
- package/build/helpers/webrtcmetrics/exporter.d.ts +0 -116
- package/build/helpers/webrtcmetrics/exporter.js +0 -528
- package/build/helpers/webrtcmetrics/extractor.d.ts +0 -1
- package/build/helpers/webrtcmetrics/extractor.js +0 -976
- package/build/helpers/webrtcmetrics/index.d.ts +0 -63
- package/build/helpers/webrtcmetrics/index.js +0 -93
- package/build/helpers/webrtcmetrics/metrics.d.ts +0 -2
- package/build/helpers/webrtcmetrics/metrics.js +0 -8
- package/build/helpers/webrtcmetrics/probe.d.ts +0 -76
- package/build/helpers/webrtcmetrics/probe.js +0 -153
- package/build/helpers/webrtcmetrics/utils/config.d.ts +0 -12
- package/build/helpers/webrtcmetrics/utils/config.js +0 -28
- package/build/helpers/webrtcmetrics/utils/helper.d.ts +0 -13
- package/build/helpers/webrtcmetrics/utils/helper.js +0 -134
- package/build/helpers/webrtcmetrics/utils/log.d.ts +0 -7
- package/build/helpers/webrtcmetrics/utils/log.js +0 -71
- package/build/helpers/webrtcmetrics/utils/models.d.ts +0 -309
- package/build/helpers/webrtcmetrics/utils/models.js +0 -298
- package/build/helpers/webrtcmetrics/utils/score.d.ts +0 -4
- package/build/helpers/webrtcmetrics/utils/score.js +0 -235
- package/build/helpers/webrtcmetrics/utils/shortUUId.d.ts +0 -1
- package/build/helpers/webrtcmetrics/utils/shortUUId.js +0 -7
- package/build/index.d.ts +0 -180
- package/build/index.js +0 -1141
- package/build/lib/msrp/message.d.ts +0 -12
- package/build/lib/msrp/message.js +0 -82
- package/build/lib/msrp/session.d.ts +0 -94
- package/build/lib/msrp/session.js +0 -621
@@ -1,235 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.computeMOSForOutgoing = exports.computeMOS = exports.computeEModelMOSForOutgoing = exports.computeEModelMOS = void 0;
|
4
|
-
const models_1 = require("./models");
|
5
|
-
const helper_1 = require("./helper");
|
6
|
-
const computeScore = (r) => {
|
7
|
-
if (r < 0) {
|
8
|
-
return 1;
|
9
|
-
}
|
10
|
-
if (r > 100) {
|
11
|
-
return 4.5;
|
12
|
-
}
|
13
|
-
return 1 + 0.035 * r + (7.0 / 1000000) * r * (r - 60) * (100 - r);
|
14
|
-
};
|
15
|
-
const computeEModelMOS = (report, kind = models_1.VALUE.AUDIO, previousReport, beforeLastReport, ssrc) => {
|
16
|
-
const currentSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, report, models_1.DIRECTION.INBOUND);
|
17
|
-
const previousSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, previousReport, models_1.DIRECTION.INBOUND);
|
18
|
-
const beforeLastSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, beforeLastReport, models_1.DIRECTION.INBOUND);
|
19
|
-
const rttValues = [];
|
20
|
-
const jitterValues = [];
|
21
|
-
const packetsLoss = currentSSRCReport[kind].percent_packets_lost_in;
|
22
|
-
const currentJitter = currentSSRCReport[kind].delta_jitter_ms_in;
|
23
|
-
const lastJitter = (previousSSRCReport && previousSSRCReport[kind].delta_jitter_ms_in) || null;
|
24
|
-
const beforeLastJitter = (beforeLastSSRCReport && beforeLastSSRCReport[kind].delta_jitter_ms_in) ||
|
25
|
-
null;
|
26
|
-
const currentRTTConnectivity = report.data.delta_rtt_connectivity_ms;
|
27
|
-
const lastRTTConnectivity = (previousReport && previousReport.data.delta_rtt_connectivity_ms) ||
|
28
|
-
null;
|
29
|
-
const beforeLastRTTConnectivity = (beforeLastReport && beforeLastReport.data.delta_rtt_connectivity_ms) ||
|
30
|
-
null;
|
31
|
-
if (currentRTTConnectivity) {
|
32
|
-
rttValues.push(currentRTTConnectivity);
|
33
|
-
}
|
34
|
-
if (lastRTTConnectivity) {
|
35
|
-
rttValues.push(lastRTTConnectivity);
|
36
|
-
}
|
37
|
-
if (beforeLastRTTConnectivity) {
|
38
|
-
rttValues.push(beforeLastRTTConnectivity);
|
39
|
-
}
|
40
|
-
// Put Jitter values
|
41
|
-
if (currentJitter) {
|
42
|
-
jitterValues.push(currentJitter);
|
43
|
-
}
|
44
|
-
if (previousReport && lastJitter) {
|
45
|
-
jitterValues.push(lastJitter);
|
46
|
-
}
|
47
|
-
if (beforeLastReport && beforeLastJitter) {
|
48
|
-
jitterValues.push(beforeLastJitter);
|
49
|
-
}
|
50
|
-
const rtt = rttValues.length > 0 ? (0, helper_1.average)(rttValues) : 100; // Default value if no value;
|
51
|
-
const jitter = jitterValues.length > 0 ? (0, helper_1.average)(jitterValues) : 10; // Default value if no value;
|
52
|
-
const rx = 93.2 - packetsLoss;
|
53
|
-
const ry = 0.18 * rx * rx - 27.9 * rx + 1126.62;
|
54
|
-
const d = (rtt + jitter) / 2;
|
55
|
-
const h = d - 177.3 < 0 ? 0 : 1;
|
56
|
-
const id = 0.024 * d + 0.11 * (d - 177.3) * h;
|
57
|
-
const r = ry - id;
|
58
|
-
return computeScore(r);
|
59
|
-
};
|
60
|
-
exports.computeEModelMOS = computeEModelMOS;
|
61
|
-
const computeEModelMOSForOutgoing = (report, kind = models_1.VALUE.AUDIO, previousReport, beforeLastReport, ssrc) => {
|
62
|
-
const currentSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, report, models_1.DIRECTION.OUTBOUND);
|
63
|
-
const previousSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, previousReport, models_1.DIRECTION.OUTBOUND);
|
64
|
-
const beforeLastSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, beforeLastReport, models_1.DIRECTION.OUTBOUND);
|
65
|
-
const rttValues = [];
|
66
|
-
const jitterValues = [];
|
67
|
-
const packetsLoss = currentSSRCReport[kind].percent_packets_lost_out;
|
68
|
-
const currentRtt = currentSSRCReport[kind].delta_rtt_ms_out;
|
69
|
-
const lastRtt = (previousSSRCReport && previousSSRCReport[kind].delta_rtt_ms_out) || null;
|
70
|
-
const beforeLastRtt = (beforeLastSSRCReport && beforeLastSSRCReport[kind].delta_rtt_ms_out) ||
|
71
|
-
null;
|
72
|
-
const currentJitter = currentSSRCReport[kind].delta_jitter_ms_out;
|
73
|
-
const lastJitter = (previousSSRCReport && previousSSRCReport[kind].delta_jitter_ms_out) || null;
|
74
|
-
const beforeLastJitter = (beforeLastSSRCReport && beforeLastSSRCReport[kind].delta_jitter_ms_out) ||
|
75
|
-
null;
|
76
|
-
const currentRTTConnectivity = report.data.delta_rtt_connectivity_ms;
|
77
|
-
const lastRTTConnectivity = (previousReport && previousReport.data.delta_rtt_connectivity_ms) ||
|
78
|
-
null;
|
79
|
-
const beforeLastRTTConnectivity = (beforeLastReport && beforeLastReport.data.delta_rtt_connectivity_ms) ||
|
80
|
-
null;
|
81
|
-
// Put RTT values when exist
|
82
|
-
if (currentRtt) {
|
83
|
-
rttValues.push(currentRtt);
|
84
|
-
}
|
85
|
-
else if (currentRTTConnectivity) {
|
86
|
-
rttValues.push(currentRTTConnectivity);
|
87
|
-
}
|
88
|
-
if (lastRtt) {
|
89
|
-
rttValues.push(lastRtt);
|
90
|
-
}
|
91
|
-
else if (lastRTTConnectivity) {
|
92
|
-
rttValues.push(lastRTTConnectivity);
|
93
|
-
}
|
94
|
-
if (beforeLastRtt) {
|
95
|
-
rttValues.push(beforeLastRtt);
|
96
|
-
}
|
97
|
-
else if (beforeLastRTTConnectivity) {
|
98
|
-
rttValues.push(beforeLastRTTConnectivity);
|
99
|
-
}
|
100
|
-
// Put Jitter values
|
101
|
-
if (currentJitter) {
|
102
|
-
jitterValues.push(currentJitter);
|
103
|
-
}
|
104
|
-
if (previousReport && lastJitter) {
|
105
|
-
jitterValues.push(lastJitter);
|
106
|
-
}
|
107
|
-
if (beforeLastReport && beforeLastJitter) {
|
108
|
-
jitterValues.push(beforeLastJitter);
|
109
|
-
}
|
110
|
-
const rtt = rttValues.length > 0 ? (0, helper_1.average)(rttValues) : 100; // Default value if no value;
|
111
|
-
const jitter = jitterValues.length > 0 ? (0, helper_1.average)(jitterValues) : 10; // Default value if no value;
|
112
|
-
const rx = 93.2 - packetsLoss;
|
113
|
-
const ry = 0.18 * rx * rx - 27.9 * rx + 1126.62;
|
114
|
-
const d = (rtt + jitter) / 2;
|
115
|
-
const h = d - 177.3 < 0 ? 0 : 1;
|
116
|
-
const id = 0.024 * d + 0.11 * (d - 177.3) * h;
|
117
|
-
const r = ry - id;
|
118
|
-
return computeScore(r);
|
119
|
-
};
|
120
|
-
exports.computeEModelMOSForOutgoing = computeEModelMOSForOutgoing;
|
121
|
-
const computeMOS = (report, kind = models_1.VALUE.AUDIO, previousReport, beforeLastReport, ssrc) => {
|
122
|
-
const currentSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, report, models_1.DIRECTION.INBOUND);
|
123
|
-
const previousSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, previousReport, models_1.DIRECTION.INBOUND);
|
124
|
-
const beforeLastSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, beforeLastReport, models_1.DIRECTION.INBOUND);
|
125
|
-
const rttValues = [];
|
126
|
-
const jitterValues = [];
|
127
|
-
const packetsLoss = currentSSRCReport[kind].percent_packets_lost_in / 100;
|
128
|
-
const currentJitter = currentSSRCReport[kind].delta_jitter_ms_in;
|
129
|
-
const lastJitter = (previousSSRCReport && previousSSRCReport[kind].delta_jitter_ms_in) || null;
|
130
|
-
const beforeLastJitter = (beforeLastSSRCReport && beforeLastSSRCReport[kind].delta_jitter_ms_in) ||
|
131
|
-
null;
|
132
|
-
const currentRTTConnectivity = report.data.delta_rtt_connectivity_ms;
|
133
|
-
const lastRTTConnectivity = (previousReport && previousReport.data.delta_rtt_connectivity_ms) ||
|
134
|
-
null;
|
135
|
-
const beforeLastRTTConnectivity = (beforeLastReport && beforeLastReport.data.delta_rtt_connectivity_ms) ||
|
136
|
-
null;
|
137
|
-
// Put RTT values when exist
|
138
|
-
if (currentRTTConnectivity) {
|
139
|
-
rttValues.push(currentRTTConnectivity);
|
140
|
-
}
|
141
|
-
if (lastRTTConnectivity) {
|
142
|
-
rttValues.push(lastRTTConnectivity);
|
143
|
-
}
|
144
|
-
if (beforeLastRTTConnectivity) {
|
145
|
-
rttValues.push(beforeLastRTTConnectivity);
|
146
|
-
}
|
147
|
-
// Put Jitter values
|
148
|
-
if (currentJitter) {
|
149
|
-
jitterValues.push(currentJitter);
|
150
|
-
}
|
151
|
-
if (previousSSRCReport && lastJitter) {
|
152
|
-
jitterValues.push(lastJitter);
|
153
|
-
}
|
154
|
-
if (beforeLastSSRCReport && beforeLastJitter) {
|
155
|
-
jitterValues.push(beforeLastJitter);
|
156
|
-
}
|
157
|
-
const rtt = rttValues.length > 0 ? (0, helper_1.average)(rttValues) : 100; // Default value if no value;
|
158
|
-
const jitter = jitterValues.length > 0 ? (0, helper_1.average)(jitterValues) : 10; // Default value if no value;
|
159
|
-
const codecFittingParameterA = 0;
|
160
|
-
const codecFittingParameterB = 19.8;
|
161
|
-
const codecFittingParameterC = 29.7;
|
162
|
-
const ld = 30;
|
163
|
-
const d = (rtt + jitter) / 2 + ld;
|
164
|
-
const h = d - 177.3 < 0 ? 0 : 1;
|
165
|
-
const id = 0.024 * d + 0.11 * (d - 177.3) * h;
|
166
|
-
const ie = codecFittingParameterA +
|
167
|
-
codecFittingParameterB * Math.log(1 + codecFittingParameterC * packetsLoss);
|
168
|
-
const r = 93.2 - (ie + id);
|
169
|
-
return computeScore(r);
|
170
|
-
};
|
171
|
-
exports.computeMOS = computeMOS;
|
172
|
-
const computeMOSForOutgoing = (report, kind = models_1.VALUE.AUDIO, previousReport, beforeLastReport, ssrc) => {
|
173
|
-
const currentSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, report, models_1.DIRECTION.OUTBOUND);
|
174
|
-
const previousSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, previousReport, models_1.DIRECTION.OUTBOUND);
|
175
|
-
const beforeLastSSRCReport = (0, helper_1.getSSRCDataFromBunch)(ssrc, beforeLastReport, models_1.DIRECTION.OUTBOUND);
|
176
|
-
const rttValues = [];
|
177
|
-
const jitterValues = [];
|
178
|
-
const packetsLoss = currentSSRCReport[kind].percent_packets_lost_out / 100;
|
179
|
-
const currentRtt = currentSSRCReport[kind].delta_rtt_ms_out;
|
180
|
-
const lastRtt = (previousSSRCReport && previousSSRCReport[kind].delta_rtt_ms_out) || null;
|
181
|
-
const beforeLastRtt = (beforeLastSSRCReport && beforeLastSSRCReport[kind].delta_rtt_ms_out) ||
|
182
|
-
null;
|
183
|
-
const currentJitter = currentSSRCReport[kind].delta_jitter_ms_out;
|
184
|
-
const lastJitter = (previousSSRCReport && previousSSRCReport[kind].delta_jitter_ms_out) || null;
|
185
|
-
const beforeLastJitter = (beforeLastSSRCReport && beforeLastSSRCReport[kind].delta_jitter_ms_out) ||
|
186
|
-
null;
|
187
|
-
const currentRTTConnectivity = report.data.delta_rtt_connectivity_ms;
|
188
|
-
const lastRTTConnectivity = (previousReport && previousReport.data.delta_rtt_connectivity_ms) ||
|
189
|
-
null;
|
190
|
-
const beforeLastRTTConnectivity = (beforeLastReport && beforeLastReport.data.delta_rtt_connectivity_ms) ||
|
191
|
-
null;
|
192
|
-
// Put RTT values when exist
|
193
|
-
if (currentRtt) {
|
194
|
-
rttValues.push(currentRtt);
|
195
|
-
}
|
196
|
-
else if (currentRTTConnectivity) {
|
197
|
-
rttValues.push(currentRTTConnectivity);
|
198
|
-
}
|
199
|
-
if (lastRtt) {
|
200
|
-
rttValues.push(lastRtt);
|
201
|
-
}
|
202
|
-
else if (lastRTTConnectivity) {
|
203
|
-
rttValues.push(lastRTTConnectivity);
|
204
|
-
}
|
205
|
-
if (beforeLastRtt) {
|
206
|
-
rttValues.push(beforeLastRtt);
|
207
|
-
}
|
208
|
-
else if (beforeLastRTTConnectivity) {
|
209
|
-
rttValues.push(beforeLastRTTConnectivity);
|
210
|
-
}
|
211
|
-
// Put Jitter values
|
212
|
-
if (currentJitter) {
|
213
|
-
jitterValues.push(currentJitter);
|
214
|
-
}
|
215
|
-
if (previousSSRCReport && lastJitter) {
|
216
|
-
jitterValues.push(lastJitter);
|
217
|
-
}
|
218
|
-
if (beforeLastSSRCReport && beforeLastJitter) {
|
219
|
-
jitterValues.push(beforeLastJitter);
|
220
|
-
}
|
221
|
-
const rtt = rttValues.length > 0 ? (0, helper_1.average)(rttValues) : 100; // Default value if no value;
|
222
|
-
const jitter = jitterValues.length > 0 ? (0, helper_1.average)(jitterValues) : 10; // Default value if no value;
|
223
|
-
const codecFittingParameterA = 0;
|
224
|
-
const codecFittingParameterB = 19.8;
|
225
|
-
const codecFittingParameterC = 29.7;
|
226
|
-
const ld = 30;
|
227
|
-
const d = (rtt + jitter) / 2 + ld;
|
228
|
-
const h = d - 177.3 < 0 ? 0 : 1;
|
229
|
-
const id = 0.024 * d + 0.11 * (d - 177.3) * h;
|
230
|
-
const ie = codecFittingParameterA +
|
231
|
-
codecFittingParameterB * Math.log(1 + codecFittingParameterC * packetsLoss);
|
232
|
-
const r = 93.2 - (ie + id);
|
233
|
-
return computeScore(r);
|
234
|
-
};
|
235
|
-
exports.computeMOSForOutgoing = computeMOSForOutgoing;
|
@@ -1 +0,0 @@
|
|
1
|
-
export default function shortUUID(): string;
|
package/build/index.d.ts
DELETED
@@ -1,180 +0,0 @@
|
|
1
|
-
import UA from './helpers/UA';
|
2
|
-
import { ITimeData } from './helpers/time.helper';
|
3
|
-
import { WebrtcMetricsConfigType } from '@/types/webrtcmetrics';
|
4
|
-
import { ListenersKeyType, ListenerCallbackFnType } from '@/types/listeners';
|
5
|
-
import { RTCSessionExtended, ICall, IRoom, IDoCallParam, IRoomUpdate, IOpenSIPSJSOptions, CustomLoggerType } from '@/types/rtc';
|
6
|
-
import { IMessage } from '@/types/msrp';
|
7
|
-
declare class OpenSIPSJS extends UA {
|
8
|
-
private initialized;
|
9
|
-
private readonly options;
|
10
|
-
private logger;
|
11
|
-
private readonly newRTCSessionEventName;
|
12
|
-
private readonly registeredEventName;
|
13
|
-
private readonly unregisteredEventName;
|
14
|
-
private readonly disconnectedEventName;
|
15
|
-
private readonly connectedEventName;
|
16
|
-
private readonly newMSRPSessionEventName;
|
17
|
-
private muted;
|
18
|
-
private isAutoAnswer;
|
19
|
-
private isDNDEnabled;
|
20
|
-
private muteWhenJoinEnabled;
|
21
|
-
private activeRooms;
|
22
|
-
private activeCalls;
|
23
|
-
private extendedCalls;
|
24
|
-
private activeMessages;
|
25
|
-
private extendedMessages;
|
26
|
-
private msrpHistory;
|
27
|
-
private microphoneInputLevelValue;
|
28
|
-
private speakerVolumeValue;
|
29
|
-
private availableMediaDevices;
|
30
|
-
private selectedMediaDevices;
|
31
|
-
private callStatus;
|
32
|
-
private callTime;
|
33
|
-
private callMetrics;
|
34
|
-
private timeIntervals;
|
35
|
-
private metricConfig;
|
36
|
-
private originalStreamValue;
|
37
|
-
private currentActiveRoomIdValue;
|
38
|
-
private isCallAddingInProgress;
|
39
|
-
private isMSRPInitializingValue;
|
40
|
-
private isReconnecting;
|
41
|
-
private listenersList;
|
42
|
-
constructor(options: IOpenSIPSJSOptions, logger?: CustomLoggerType);
|
43
|
-
on<T extends ListenersKeyType>(type: T, listener: ListenerCallbackFnType<T>): this;
|
44
|
-
off<T extends ListenersKeyType>(type: T, listener: ListenerCallbackFnType<T>): this;
|
45
|
-
emit(type: ListenersKeyType, args: any): boolean;
|
46
|
-
get sipDomain(): string;
|
47
|
-
get sipOptions(): {
|
48
|
-
mediaConstraints: {
|
49
|
-
audio: {
|
50
|
-
deviceId: {
|
51
|
-
exact: string;
|
52
|
-
};
|
53
|
-
};
|
54
|
-
video: boolean;
|
55
|
-
};
|
56
|
-
session_timers: boolean;
|
57
|
-
extraHeaders: [string];
|
58
|
-
pcConfig: import("@/types/rtc").RTCConfiguration;
|
59
|
-
};
|
60
|
-
get currentActiveRoomId(): number | undefined;
|
61
|
-
private set currentActiveRoomId(value);
|
62
|
-
get autoAnswer(): boolean;
|
63
|
-
get callAddingInProgress(): string | undefined;
|
64
|
-
private set callAddingInProgress(value);
|
65
|
-
get isMSRPInitializing(): boolean | undefined;
|
66
|
-
get muteWhenJoin(): boolean;
|
67
|
-
get isDND(): boolean;
|
68
|
-
get speakerVolume(): number;
|
69
|
-
get microphoneInputLevel(): number;
|
70
|
-
get getActiveCalls(): {
|
71
|
-
[key: string]: ICall;
|
72
|
-
};
|
73
|
-
get hasActiveCalls(): boolean;
|
74
|
-
get getActiveMessages(): {
|
75
|
-
[key: string]: IMessage;
|
76
|
-
};
|
77
|
-
get getActiveRooms(): {
|
78
|
-
[key: number]: IRoom;
|
79
|
-
};
|
80
|
-
get isMuted(): boolean;
|
81
|
-
get getInputDeviceList(): MediaDeviceInfo[];
|
82
|
-
get getOutputDeviceList(): MediaDeviceInfo[];
|
83
|
-
get getUserMediaConstraints(): {
|
84
|
-
audio: {
|
85
|
-
deviceId: {
|
86
|
-
exact: string;
|
87
|
-
};
|
88
|
-
};
|
89
|
-
video: boolean;
|
90
|
-
};
|
91
|
-
get getInputDefaultDevice(): MediaDeviceInfo | undefined;
|
92
|
-
get getOutputDefaultDevice(): MediaDeviceInfo | undefined;
|
93
|
-
get selectedInputDevice(): string;
|
94
|
-
get selectedOutputDevice(): string;
|
95
|
-
get originalStream(): MediaStream | null;
|
96
|
-
private setAvailableMediaDevices;
|
97
|
-
updateDeviceList(): Promise<void>;
|
98
|
-
setMediaDevices(setDefaults?: boolean): Promise<void>;
|
99
|
-
setCallTime(value: ITimeData): void;
|
100
|
-
removeCallTime(callId: string): void;
|
101
|
-
private setTimeInterval;
|
102
|
-
private removeTimeInterval;
|
103
|
-
private _stopCallTimer;
|
104
|
-
setMetricsConfig(config: WebrtcMetricsConfigType): void;
|
105
|
-
sendDTMF(callId: string, value: string): void;
|
106
|
-
private setIsMuted;
|
107
|
-
doMute(value: boolean): void;
|
108
|
-
doCallHold({ callId, toHold, automatic }: {
|
109
|
-
callId: string;
|
110
|
-
toHold: boolean;
|
111
|
-
automatic?: boolean;
|
112
|
-
}): void;
|
113
|
-
private _cancelAllOutgoingUnanswered;
|
114
|
-
callAnswer(callId: string): void;
|
115
|
-
msrpAnswer(callId: string): void;
|
116
|
-
callMove(callId: string, roomId: number): Promise<void>;
|
117
|
-
updateCall(value: ICall): void;
|
118
|
-
updateMSRPSession(value: IMessage): void;
|
119
|
-
updateRoom(value: IRoomUpdate): void;
|
120
|
-
private hasAutoAnswerHeaders;
|
121
|
-
private _addCall;
|
122
|
-
private _addCallStatus;
|
123
|
-
private _addMMSRPSession;
|
124
|
-
private _addMSRPMessage;
|
125
|
-
private _updateCallStatus;
|
126
|
-
private _removeCallStatus;
|
127
|
-
private _addRoom;
|
128
|
-
setMicrophone(dId: string): Promise<void>;
|
129
|
-
private _setOriginalStream;
|
130
|
-
setSpeaker(dId: string): Promise<void>;
|
131
|
-
private removeRoom;
|
132
|
-
private deleteRoomIfEmpty;
|
133
|
-
private checkInitialized;
|
134
|
-
private muteReconfigure;
|
135
|
-
private roomReconfigure;
|
136
|
-
private _doConference;
|
137
|
-
_muteReconfigure(call: ICall): void;
|
138
|
-
muteCaller(callId: string, value: boolean): void;
|
139
|
-
callTerminate(callId: string): void;
|
140
|
-
messageTerminate(callId: string): void;
|
141
|
-
callTransfer(callId: string, target: string): void;
|
142
|
-
callMerge(roomId: number): void;
|
143
|
-
setDND(value: boolean): void;
|
144
|
-
private _startCallTimer;
|
145
|
-
setCurrentActiveRoomId(roomId: number | undefined): Promise<void>;
|
146
|
-
private getNewRoomId;
|
147
|
-
subscribe(type: string, listener: (c: RTCSessionExtended) => void): void;
|
148
|
-
removeIListener(value: string): void;
|
149
|
-
private addCall;
|
150
|
-
private addMessageSession;
|
151
|
-
private _triggerListener;
|
152
|
-
private _triggerMSRPListener;
|
153
|
-
private _removeCall;
|
154
|
-
private _removeMMSRPSession;
|
155
|
-
private _activeCallListRemove;
|
156
|
-
private _activeMessageListRemove;
|
157
|
-
private newRTCSessionCallback;
|
158
|
-
private newMSRPSessionCallback;
|
159
|
-
private setInitialized;
|
160
|
-
begin(): this | undefined;
|
161
|
-
setMuteWhenJoin(value: boolean): void;
|
162
|
-
setMicrophoneInputLevel(value: number): void;
|
163
|
-
setSpeakerVolume(value: number): void;
|
164
|
-
setAutoAnswer(value: boolean): void;
|
165
|
-
private setSelectedInputDevice;
|
166
|
-
private setSelectedOutputDevice;
|
167
|
-
private setIsMSRPInitializing;
|
168
|
-
private _setCallMetrics;
|
169
|
-
private _removeCallMetrics;
|
170
|
-
private _getCallQuality;
|
171
|
-
private _triggerAddStream;
|
172
|
-
doCall({ target, addToCurrentRoom }: IDoCallParam): void;
|
173
|
-
initMSRP(target: string, body: string, options: any): void;
|
174
|
-
sendMSRP(msrpSessionId: string, body: string): void;
|
175
|
-
callChangeRoom({ callId, roomId }: {
|
176
|
-
callId: string;
|
177
|
-
roomId: number;
|
178
|
-
}): Promise<void>;
|
179
|
-
}
|
180
|
-
export default OpenSIPSJS;
|