sip-connector 14.1.0 → 14.1.2-0

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.
Files changed (98) hide show
  1. package/dist/SipConnector-BHvTGgmw.js +1352 -0
  2. package/dist/SipConnector-ChW25Tx9.cjs +1 -0
  3. package/dist/doMock.cjs +1 -1
  4. package/dist/doMock.js +328 -327
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.js +280 -270
  7. package/dist/src/SipConnector.d.ts +235 -0
  8. package/dist/{SipConnectorFacade → src/SipConnectorFacade}/SipConnectorFacade.d.ts +7 -7
  9. package/dist/{__fixtures__ → src/__fixtures__}/BaseSession.mock.d.ts +22 -34
  10. package/dist/{__fixtures__ → src/__fixtures__}/RTCPeerConnectionMock.d.ts +15 -15
  11. package/dist/{__fixtures__ → src/__fixtures__}/RTCRtpSenderMock.d.ts +2 -2
  12. package/dist/{__fixtures__ → src/__fixtures__}/RTCSessionMock.d.ts +34 -38
  13. package/dist/{__fixtures__ → src/__fixtures__}/UA.mock.d.ts +25 -44
  14. package/dist/{__fixtures__ → src/__fixtures__}/channelsNotify.d.ts +2 -2
  15. package/dist/{__fixtures__ → src/__fixtures__}/jssip.mock.d.ts +1 -1
  16. package/dist/{__fixtures__ → src/__fixtures__}/participantNotify.d.ts +2 -2
  17. package/dist/{tools → src/tools}/index.d.ts +2 -2
  18. package/dist/{tools → src/tools}/sendDTMFAccumulated.d.ts +2 -2
  19. package/dist/{types.d.ts → src/types.d.ts} +2 -1
  20. package/dist/src/videoSendingBalancer/scaleBitrate.d.ts +2 -0
  21. package/package.json +27 -26
  22. package/dist/SipConnector-BPIL3yLc.js +0 -1343
  23. package/dist/SipConnector-BUbfMgHs.cjs +0 -1
  24. package/dist/SipConnector.d.ts +0 -315
  25. package/dist/utils.d.ts +0 -4
  26. package/dist/videoSendingBalancer/scaleBitrate.d.ts +0 -2
  27. /package/dist/{SipConnectorFacade → src/SipConnectorFacade}/index.d.ts +0 -0
  28. /package/dist/{__fixtures__ → src/__fixtures__}/Registrator.mock.d.ts +0 -0
  29. /package/dist/{__fixtures__ → src/__fixtures__}/Request.mock.d.ts +0 -0
  30. /package/dist/{__fixtures__ → src/__fixtures__}/WebSocketInterface.mock.d.ts +0 -0
  31. /package/dist/{__fixtures__ → src/__fixtures__}/accountNotify.d.ts +0 -0
  32. /package/dist/{__fixtures__ → src/__fixtures__}/channels.d.ts +0 -0
  33. /package/dist/{__fixtures__ → src/__fixtures__}/conferenceParticipantTokenIssuedNotify.d.ts +0 -0
  34. /package/dist/{__fixtures__ → src/__fixtures__}/delayPromise.d.ts +0 -0
  35. /package/dist/{__fixtures__ → src/__fixtures__}/enterRoom.d.ts +0 -0
  36. /package/dist/{__fixtures__ → src/__fixtures__}/index.d.ts +0 -0
  37. /package/dist/{__fixtures__ → src/__fixtures__}/mediaState.d.ts +0 -0
  38. /package/dist/{__fixtures__ → src/__fixtures__}/participantMoveRequests.d.ts +0 -0
  39. /package/dist/{__fixtures__ → src/__fixtures__}/remoteCallerData.d.ts +0 -0
  40. /package/dist/{__fixtures__ → src/__fixtures__}/utils.d.ts +0 -0
  41. /package/dist/{__fixtures__ → src/__fixtures__}/webcastNotify.d.ts +0 -0
  42. /package/dist/{causes.d.ts → src/causes.d.ts} +0 -0
  43. /package/dist/{constants.d.ts → src/constants.d.ts} +0 -0
  44. /package/dist/{doMock.d.ts → src/doMock.d.ts} +0 -0
  45. /package/dist/{eventNames.d.ts → src/eventNames.d.ts} +0 -0
  46. /package/dist/{getExtraHeadersRemoteAddress.d.ts → src/getExtraHeadersRemoteAddress.d.ts} +0 -0
  47. /package/dist/{headers.d.ts → src/headers.d.ts} +0 -0
  48. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  49. /package/dist/{logger.d.ts → src/logger.d.ts} +0 -0
  50. /package/dist/{setParametersToSender → src/setParametersToSender}/configureDegradationPreference.d.ts +0 -0
  51. /package/dist/{setParametersToSender → src/setParametersToSender}/configureEmptyEncodings.d.ts +0 -0
  52. /package/dist/{setParametersToSender → src/setParametersToSender}/configureEncodings.d.ts +0 -0
  53. /package/dist/{setParametersToSender → src/setParametersToSender}/configureMaxBitrate.d.ts +0 -0
  54. /package/dist/{setParametersToSender → src/setParametersToSender}/configureScaleResolutionDownBy.d.ts +0 -0
  55. /package/dist/{setParametersToSender → src/setParametersToSender}/hasChangedRTCRtpSendParameters.d.ts +0 -0
  56. /package/dist/{setParametersToSender → src/setParametersToSender}/index.d.ts +0 -0
  57. /package/dist/{setParametersToSender → src/setParametersToSender}/resolveHasNeedToUpdateItemEncoding.d.ts +0 -0
  58. /package/dist/{setParametersToSender → src/setParametersToSender}/setParametersToSender.d.ts +0 -0
  59. /package/dist/{tools → src/tools}/__fixtures__/call.d.ts +0 -0
  60. /package/dist/{tools → src/tools}/__fixtures__/connectToServer.d.ts +0 -0
  61. /package/dist/{tools → src/tools}/__fixtures__/hasValidUri.d.ts +0 -0
  62. /package/dist/{tools → src/tools}/__fixtures__/permissions.d.ts +0 -0
  63. /package/dist/{tools → src/tools}/__fixtures__/processRequest.d.ts +0 -0
  64. /package/dist/{tools → src/tools}/__tests-utils__/parseObject.d.ts +0 -0
  65. /package/dist/{tools → src/tools}/__tests-utils__/resolveParseArray.d.ts +0 -0
  66. /package/dist/{tools → src/tools}/error/getLinkError.d.ts +0 -0
  67. /package/dist/{tools → src/tools}/error/getTypeFromError.d.ts +0 -0
  68. /package/dist/{tools → src/tools}/error/getValuesFromError.d.ts +0 -0
  69. /package/dist/{tools → src/tools}/error/index.d.ts +0 -0
  70. /package/dist/{tools → src/tools}/error/stringifyMessage.d.ts +0 -0
  71. /package/dist/{tools → src/tools}/generateSimulcastEncodings.d.ts +0 -0
  72. /package/dist/{tools → src/tools}/getExtraHeaders.d.ts +0 -0
  73. /package/dist/{tools → src/tools}/getUserAgent.d.ts +0 -0
  74. /package/dist/{tools → src/tools}/hasPurgatory.d.ts +0 -0
  75. /package/dist/{tools → src/tools}/prepareMediaStream.d.ts +0 -0
  76. /package/dist/{tools → src/tools}/resolveUpdateTransceiver.d.ts +0 -0
  77. /package/dist/{tools → src/tools}/setVideoTrackContentHints.d.ts +0 -0
  78. /package/dist/{tools → src/tools}/syncMediaState/index.d.ts +0 -0
  79. /package/dist/{tools → src/tools}/syncMediaState/resolveOnStartMainCam.d.ts +0 -0
  80. /package/dist/{tools → src/tools}/syncMediaState/resolveOnStartMic.d.ts +0 -0
  81. /package/dist/{tools → src/tools}/syncMediaState/resolveOnStopMainCam.d.ts +0 -0
  82. /package/dist/{tools → src/tools}/syncMediaState/resolveOnStopMic.d.ts +0 -0
  83. /package/dist/{utils → src/utils}/errors.d.ts +0 -0
  84. /package/dist/{utils → src/utils}/findSenderByStream.d.ts +0 -0
  85. /package/dist/{utils → src/utils}/findVideoSender.d.ts +0 -0
  86. /package/dist/{utils → src/utils}/findVideoTrack.d.ts +0 -0
  87. /package/dist/{utils → src/utils}/getCodecFromSender.d.ts +0 -0
  88. /package/dist/{utils → src/utils}/replaceForbiddenSymbolsWithUnderscore.d.ts +0 -0
  89. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/balance.d.ts +0 -0
  90. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/getMaxBitrateByWidth.d.ts +0 -0
  91. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/getMaxBitrateByWidthAndCodec.d.ts +0 -0
  92. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/hasAv1Codec.d.ts +0 -0
  93. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/hasIncludesString.d.ts +0 -0
  94. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/index.d.ts +0 -0
  95. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/processSender.d.ts +0 -0
  96. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/scaleBitrateByCodec.d.ts +0 -0
  97. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/scaleResolutionAndBitrate.d.ts +0 -0
  98. /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/setEncodingsToSender.d.ts +0 -0
package/dist/doMock.js CHANGED
@@ -1,73 +1,69 @@
1
- var y = Object.defineProperty;
2
- var N = (o, t, e) => t in o ? y(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
- var r = (o, t, e) => N(o, typeof t != "symbol" ? t + "" : t, e);
4
- import { o as P, R as O, U as A, S as b } from "./SipConnector-BPIL3yLc.js";
5
- import k from "@krivega/jssip/lib/NameAddrHeader";
6
- import D from "@krivega/jssip/lib/URI";
7
- import { EventEmitter as L } from "node:events";
8
- import { IncomingRequest as W } from "@krivega/jssip/lib/SIPMessage";
9
- import { createAudioMediaStreamTrackMock as V, createVideoMediaStreamTrackMock as F } from "webrtc-mock";
10
- import v from "events-constructor";
11
- import { URI as E } from "@krivega/jssip";
12
- class I extends W {
13
- constructor(e) {
1
+ var k = Object.defineProperty;
2
+ var A = (o, e, t) => e in o ? k(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var r = (o, e, t) => A(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import { o as b, R as D, U as L, S as W } from "./SipConnector-BHvTGgmw.js";
5
+ import V from "@krivega/jssip/lib/NameAddrHeader";
6
+ import F from "@krivega/jssip/lib/URI";
7
+ import { EventEmitter as x } from "node:events";
8
+ import { IncomingRequest as U } from "@krivega/jssip/lib/SIPMessage";
9
+ import { createAudioMediaStreamTrackMock as H, createVideoMediaStreamTrackMock as z } from "webrtc-mock";
10
+ import N from "events-constructor";
11
+ import { URI as _, C as T } from "@krivega/jssip";
12
+ class S extends U {
13
+ constructor(t) {
14
14
  super();
15
15
  r(this, "headers");
16
- this.headers = new Headers(e);
16
+ this.headers = new Headers(t);
17
17
  }
18
- getHeader(e) {
19
- return this.headers.get(e) || "";
18
+ getHeader(t) {
19
+ return this.headers.get(t) ?? "";
20
20
  }
21
21
  }
22
- class x {
23
- // @ts-expect-error
24
- constructor({ originator: t = "local", eventHandlers: e }) {
22
+ class Y {
23
+ constructor({
24
+ originator: e = "local",
25
+ eventHandlers: t
26
+ }) {
25
27
  r(this, "originator");
26
- r(this, "_connection");
27
- r(this, "_events");
28
- r(this, "_remote_identity");
29
- r(this, "_mutedOptions", { audio: !1, video: !1 });
30
- this.originator = t, this._events = new v(P), this.initEvents(e);
28
+ r(this, "connection");
29
+ r(this, "events");
30
+ r(this, "remote_identity");
31
+ r(this, "mutedOptions", { audio: !1, video: !1 });
32
+ this.originator = e, this.events = new N(b), this.initEvents(t);
31
33
  }
32
- // @ts-expect-error
33
- get C() {
34
+ get contact() {
34
35
  throw new Error("Method not implemented.");
35
36
  }
36
- // @ts-expect-error
37
- get causes() {
37
+ get direction() {
38
38
  throw new Error("Method not implemented.");
39
39
  }
40
- get id() {
40
+ get local_identity() {
41
41
  throw new Error("Method not implemented.");
42
42
  }
43
- set data(t) {
43
+ get start_time() {
44
44
  throw new Error("Method not implemented.");
45
45
  }
46
- get data() {
46
+ get end_time() {
47
47
  throw new Error("Method not implemented.");
48
48
  }
49
- get connection() {
50
- return this._connection;
51
- }
52
- get contact() {
49
+ get status() {
53
50
  throw new Error("Method not implemented.");
54
51
  }
55
- get direction() {
52
+ // @ts-expect-error
53
+ get C() {
56
54
  throw new Error("Method not implemented.");
57
55
  }
58
- get local_identity() {
56
+ // @ts-expect-error
57
+ get causes() {
59
58
  throw new Error("Method not implemented.");
60
59
  }
61
- get remote_identity() {
62
- return this._remote_identity;
63
- }
64
- get start_time() {
60
+ get id() {
65
61
  throw new Error("Method not implemented.");
66
62
  }
67
- get end_time() {
63
+ get data() {
68
64
  throw new Error("Method not implemented.");
69
65
  }
70
- get status() {
66
+ set data(e) {
71
67
  throw new Error("Method not implemented.");
72
68
  }
73
69
  isInProgress() {
@@ -79,104 +75,97 @@ class x {
79
75
  isReadyToReOffer() {
80
76
  throw new Error("Method not implemented.");
81
77
  }
82
- answer(t) {
78
+ answer(e) {
83
79
  throw new Error("Method not implemented.");
84
80
  }
85
- terminate(t) {
81
+ terminate(e) {
86
82
  throw new Error("Method not implemented.");
87
83
  }
88
- async sendInfo(t, e, n) {
84
+ async sendInfo(e, t, n) {
89
85
  throw new Error("Method not implemented.");
90
86
  }
91
- hold(t, e) {
87
+ hold(e, t) {
92
88
  throw new Error("Method not implemented.");
93
89
  }
94
- unhold(t, e) {
90
+ unhold(e, t) {
95
91
  throw new Error("Method not implemented.");
96
92
  }
97
- async renegotiate(t, e) {
93
+ async renegotiate(e, t) {
98
94
  throw new Error("Method not implemented.");
99
95
  }
100
96
  isOnHold() {
101
97
  throw new Error("Method not implemented.");
102
98
  }
103
- mute(t) {
99
+ mute(e) {
104
100
  throw new Error("Method not implemented.");
105
101
  }
106
- unmute(t) {
102
+ unmute(e) {
107
103
  throw new Error("Method not implemented.");
108
104
  }
109
105
  isMuted() {
110
106
  throw new Error("Method not implemented.");
111
107
  }
112
- refer(t, e) {
108
+ refer(e, t) {
113
109
  throw new Error("Method not implemented.");
114
110
  }
115
111
  resetLocalMedia() {
116
112
  throw new Error("Method not implemented.");
117
113
  }
118
- async replaceMediaStream(t, e) {
114
+ async replaceMediaStream(e, t) {
119
115
  throw new Error("Method not implemented.");
120
116
  }
121
- addListener(t, e) {
117
+ addListener(e, t) {
122
118
  throw new Error("Method not implemented.");
123
119
  }
124
- once(t, e) {
120
+ once(e, t) {
125
121
  throw new Error("Method not implemented.");
126
122
  }
127
- removeListener(t, e) {
123
+ removeListener(e, t) {
128
124
  throw new Error("Method not implemented.");
129
125
  }
130
- off(t, e) {
126
+ off(e, t) {
131
127
  throw new Error("Method not implemented.");
132
128
  }
133
- removeAllListeners(t) {
129
+ removeAllListeners(e) {
134
130
  throw new Error("Method not implemented.");
135
131
  }
136
- setMaxListeners(t) {
132
+ setMaxListeners(e) {
137
133
  throw new Error("Method not implemented.");
138
134
  }
139
135
  getMaxListeners() {
140
136
  throw new Error("Method not implemented.");
141
137
  }
142
- listeners(t) {
138
+ listeners(e) {
143
139
  throw new Error("Method not implemented.");
144
140
  }
145
- rawListeners(t) {
141
+ rawListeners(e) {
146
142
  throw new Error("Method not implemented.");
147
143
  }
148
- emit(t, ...e) {
144
+ emit(e, ...t) {
149
145
  throw new Error("Method not implemented.");
150
146
  }
151
- listenerCount(t) {
147
+ listenerCount(e) {
152
148
  throw new Error("Method not implemented.");
153
149
  }
154
- prependListener(t, e) {
150
+ prependListener(e, t) {
155
151
  throw new Error("Method not implemented.");
156
152
  }
157
- prependOnceListener(t, e) {
153
+ prependOnceListener(e, t) {
158
154
  throw new Error("Method not implemented.");
159
155
  }
160
156
  eventNames() {
161
157
  throw new Error("Method not implemented.");
162
158
  }
163
- /**
164
- * initEvents
165
- *
166
- * @param {Array} [eventHandlers=[] - ] The event handlers
167
- *
168
- * @returns {undefined}
169
- */
170
- initEvents(t = []) {
171
- Object.entries(t).forEach(([e, n]) => this.on(e, n));
159
+ initEvents(e) {
160
+ Object.entries(e).forEach(([t, n]) => this.on(t, n));
172
161
  }
173
162
  // @ts-expect-error
174
163
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
175
- on(t, e) {
176
- return this._events.on(t, e), this;
164
+ on(e, t) {
165
+ return this.events.on(e, t), this;
177
166
  }
178
- trigger(t, e) {
179
- this._events.trigger(t, e);
167
+ trigger(e, t) {
168
+ this.events.trigger(e, t);
180
169
  }
181
170
  /**
182
171
  * sendDTMF
@@ -188,64 +177,66 @@ class x {
188
177
  sendDTMF() {
189
178
  this.trigger("newDTMF", { originator: this.originator });
190
179
  }
191
- async startPresentation(t) {
192
- return t;
180
+ async startPresentation(e) {
181
+ return e;
193
182
  }
194
- async updatePresentation(t) {
195
- return t;
183
+ async updatePresentation(e) {
184
+ return e;
196
185
  }
197
- async stopPresentation(t) {
198
- return t;
186
+ async stopPresentation(e) {
187
+ return e;
199
188
  }
200
189
  isEstablished() {
201
190
  return !0;
202
191
  }
203
192
  }
204
- class U {
205
- constructor({ track: t } = {}) {
193
+ class q {
194
+ constructor({ track: e } = {}) {
206
195
  r(this, "dtmf", null);
207
196
  r(this, "track", null);
208
197
  r(this, "transport", null);
209
198
  r(this, "transform", null);
210
- r(this, "_parameters", {
199
+ r(this, "parameters", {
211
200
  encodings: [{}],
212
201
  transactionId: "0",
213
202
  codecs: [],
214
203
  headerExtensions: [],
215
204
  rtcp: {}
216
205
  });
217
- r(this, "_parametersGets");
218
- this.track = t ?? null;
206
+ r(this, "parametersGets");
207
+ this.track = e ?? null;
219
208
  }
209
+ // eslint-disable-next-line class-methods-use-this
220
210
  async getStats() {
221
211
  throw new Error("Method not implemented.");
222
212
  }
223
- async replaceTrack(t) {
224
- this.track = t ?? null;
213
+ async replaceTrack(e) {
214
+ this.track = e ?? null;
225
215
  }
226
- async setParameters(t) {
227
- if (t !== this._parametersGets)
216
+ async setParameters(e) {
217
+ if (e !== this.parametersGets)
228
218
  throw new Error(
229
219
  "Failed to execute 'setParameters' on 'RTCRtpSender': Read-only field modified in setParameters()."
230
220
  );
231
- const { transactionId: e } = this._parameters;
232
- this._parameters = {
233
- ...this._parameters,
234
- ...t,
235
- transactionId: `${Number(e) + 1}`
221
+ const { transactionId: t } = this.parameters;
222
+ this.parameters = {
223
+ ...this.parameters,
224
+ ...e,
225
+ transactionId: `${Number(t) + 1}`
236
226
  };
237
227
  }
238
228
  getParameters() {
239
- return this._parametersGets = { ...this._parameters }, this._parametersGets;
229
+ return this.parametersGets = { ...this.parameters }, this.parametersGets;
240
230
  }
231
+ // eslint-disable-next-line class-methods-use-this
241
232
  setStreams() {
242
233
  throw new Error("Method not implemented.");
243
234
  }
244
235
  }
245
- class H {
246
- constructor(t, e) {
247
- r(this, "_senders", []);
248
- r(this, "_receivers", []);
236
+ class G {
237
+ constructor(e, t) {
238
+ r(this, "senders", []);
239
+ r(this, "receivers", []);
249
240
  r(this, "canTrickleIceCandidates");
250
241
  r(this, "connectionState");
251
242
  r(this, "currentLocalDescription");
@@ -258,6 +249,7 @@ class H {
258
249
  r(this, "onconnectionstatechange");
259
250
  r(this, "ondatachannel");
260
251
  r(this, "onicecandidate");
252
+ // eslint-disable-next-line unicorn/no-null
261
253
  r(this, "onicecandidateerror", null);
262
254
  r(this, "oniceconnectionstatechange");
263
255
  r(this, "onicegatheringstatechange");
@@ -268,23 +260,24 @@ class H {
268
260
  r(this, "pendingLocalDescription");
269
261
  r(this, "pendingRemoteDescription");
270
262
  r(this, "remoteDescription");
263
+ // eslint-disable-next-line unicorn/no-null
271
264
  r(this, "sctp", null);
272
265
  r(this, "signalingState");
273
- r(this, "getReceivers", () => this._receivers);
274
- r(this, "getSenders", () => this._senders);
275
- r(this, "addTrack", (t) => {
276
- const e = new U({ track: t });
277
- return this._senders.push(e), e;
266
+ r(this, "getReceivers", () => this.receivers);
267
+ r(this, "getSenders", () => this.senders);
268
+ r(this, "addTrack", (e) => {
269
+ const t = new q({ track: e });
270
+ return this.senders.push(t), t;
278
271
  });
279
- this._receivers = e.map((n) => ({ track: n }));
272
+ this.receivers = t.map((n) => ({ track: n }));
280
273
  }
281
274
  getRemoteStreams() {
282
275
  throw new Error("Method not implemented.");
283
276
  }
284
- async addIceCandidate(t) {
277
+ async addIceCandidate(e) {
285
278
  throw new Error("Method not implemented.");
286
279
  }
287
- addTransceiver(t, e) {
280
+ addTransceiver(e, t) {
288
281
  throw new Error("Method not implemented.");
289
282
  }
290
283
  close() {
@@ -293,13 +286,13 @@ class H {
293
286
  restartIce() {
294
287
  throw new Error("Method not implemented.");
295
288
  }
296
- async createAnswer(t, e) {
289
+ async createAnswer(e, t) {
297
290
  throw new Error("Method not implemented.");
298
291
  }
299
- createDataChannel(t, e) {
292
+ createDataChannel(e, t) {
300
293
  throw new Error("Method not implemented.");
301
294
  }
302
- async createOffer(t, e, n) {
295
+ async createOffer(e, t, n) {
303
296
  throw new Error("Method not implemented.");
304
297
  }
305
298
  getConfiguration() {
@@ -308,43 +301,43 @@ class H {
308
301
  async getIdentityAssertion() {
309
302
  throw new Error("Method not implemented.");
310
303
  }
311
- async getStats(t) {
304
+ async getStats(e) {
312
305
  throw new Error("Method not implemented.");
313
306
  }
314
307
  getTransceivers() {
315
308
  throw new Error("Method not implemented.");
316
309
  }
317
- removeTrack(t) {
310
+ removeTrack(e) {
318
311
  throw new Error("Method not implemented.");
319
312
  }
320
- setConfiguration(t) {
313
+ setConfiguration(e) {
321
314
  throw new Error("Method not implemented.");
322
315
  }
323
- async setLocalDescription(t) {
316
+ async setLocalDescription(e) {
324
317
  throw new Error("Method not implemented.");
325
318
  }
326
- async setRemoteDescription(t) {
319
+ async setRemoteDescription(e) {
327
320
  throw new Error("Method not implemented.");
328
321
  }
329
- addEventListener(t, e, n) {
322
+ addEventListener(e, t, n) {
330
323
  throw new Error("Method not implemented.");
331
324
  }
332
- removeEventListener(t, e, n) {
325
+ removeEventListener(e, t, n) {
333
326
  throw new Error("Method not implemented.");
334
327
  }
335
- dispatchEvent(t) {
328
+ dispatchEvent(e) {
336
329
  throw new Error("Method not implemented.");
337
330
  }
338
331
  }
339
- function z(o) {
340
- const t = o.match(/(purgatory)|[\d.]+/g);
341
- if (!t)
332
+ function J(o) {
333
+ const e = o.match(/(purgatory)|[\d.]+/g);
334
+ if (!e)
342
335
  throw new Error("wrong sip url");
343
- return t[0];
336
+ return e[0];
344
337
  }
345
- const p = 400, Y = "777", q = (o) => o.getVideoTracks().length > 0, a = class a extends x {
338
+ const g = 400, $ = "777", j = (o) => o.getVideoTracks().length > 0, a = class a extends Y {
346
339
  constructor({
347
- url: e = "",
340
+ url: t = "",
348
341
  mediaStream: n,
349
342
  eventHandlers: i,
350
343
  originator: d
@@ -352,7 +345,6 @@ const p = 400, Y = "777", q = (o) => o.getVideoTracks().length > 0, a = class a
352
345
  super({ originator: d, eventHandlers: i });
353
346
  r(this, "url");
354
347
  r(this, "status_code");
355
- r(this, "_isEnded", !1);
356
348
  /**
357
349
  * answer
358
350
  *
@@ -362,52 +354,53 @@ const p = 400, Y = "777", q = (o) => o.getVideoTracks().length > 0, a = class a
362
354
 
363
355
  * @returns {undefined}
364
356
  */
365
- r(this, "answer", jest.fn(({ mediaStream: e }) => {
357
+ r(this, "answer", jest.fn(({ mediaStream: t }) => {
366
358
  if (this.originator !== "remote")
367
359
  throw new Error("answer available only for remote sessions");
368
- this.initPeerconnection(e), setTimeout(() => {
360
+ this.initPeerconnection(t), setTimeout(() => {
369
361
  this.trigger("connecting"), setTimeout(() => {
370
362
  this.trigger("accepted");
371
363
  }, 100), setTimeout(() => {
372
364
  this.trigger("confirmed");
373
365
  }, 200);
374
- }, p);
366
+ }, g);
375
367
  }));
376
- this.url = e, this.initPeerconnection(n);
368
+ r(this, "isEndedInner", !1);
369
+ this.url = t, this.initPeerconnection(n);
377
370
  }
378
- static setStartPresentationError(e, { count: n = Number.POSITIVE_INFINITY } = {}) {
379
- this.startPresentationError = e, this.countStartPresentationError = n;
371
+ static setStartPresentationError(t, { count: n = Number.POSITIVE_INFINITY } = {}) {
372
+ this.startPresentationError = t, this.countStartPresentationError = n;
380
373
  }
381
374
  static resetStartPresentationError() {
382
375
  this.startPresentationError = void 0, this.countStartPresentationError = Number.POSITIVE_INFINITY, this.countStartsPresentation = 0;
383
376
  }
384
- async startPresentation(e) {
377
+ async startPresentation(t) {
385
378
  if (a.countStartsPresentation += 1, a.startPresentationError && a.countStartsPresentation < a.countStartPresentationError)
386
379
  throw a.startPresentationError;
387
- return super.startPresentation(e);
380
+ return super.startPresentation(t);
388
381
  }
389
- initPeerconnection(e) {
390
- return e ? (this.createPeerconnection(e), !0) : !1;
382
+ initPeerconnection(t) {
383
+ return t ? (this.createPeerconnection(t), !0) : !1;
391
384
  }
392
- createPeerconnection(e) {
393
- const n = V();
385
+ createPeerconnection(t) {
386
+ const n = H();
394
387
  n.id = "mainaudio1";
395
388
  const i = [n];
396
- if (q(e)) {
397
- const h = F();
398
- h.id = "mainvideo1", i.push(h);
389
+ if (j(t)) {
390
+ const c = z();
391
+ c.id = "mainvideo1", i.push(c);
399
392
  }
400
- this._connection = new H(void 0, i), this._addStream(e), setTimeout(() => {
393
+ this.connection = new G(void 0, i), this.addStream(t), setTimeout(() => {
401
394
  this.trigger("peerconnection", { peerconnection: this.connection });
402
- }, p);
395
+ }, g);
403
396
  }
404
- connect(e) {
405
- const n = z(e);
397
+ connect(t) {
398
+ const n = J(t);
406
399
  setTimeout(() => {
407
- this.url.includes(Y) ? this.trigger("failed", {
400
+ this.url.includes($) ? this.trigger("failed", {
408
401
  originator: "remote",
409
402
  message: "IncomingResponse",
410
- cause: O
403
+ cause: D
411
404
  }) : (this.trigger("connecting"), setTimeout(() => {
412
405
  this.trigger("enterRoom", { room: n });
413
406
  }, 100), setTimeout(() => {
@@ -415,103 +408,120 @@ const p = 400, Y = "777", q = (o) => o.getVideoTracks().length > 0, a = class a
415
408
  }, 200), setTimeout(() => {
416
409
  this.trigger("confirmed");
417
410
  }, 300));
418
- }, p);
411
+ }, g);
419
412
  }
420
- terminate({ status_code: e } = {}) {
421
- return this.status_code = e, this.trigger("ended", { status_code: e }), this._isEnded = !1, this;
413
+ terminate({ status_code: t, cause: n } = {}) {
414
+ return this.status_code = t, this.trigger("ended", { status_code: t, cause: n, originator: "local" }), this.isEndedInner = !1, this;
422
415
  }
423
- async terminateAsync({ status_code: e } = {}) {
424
- this.terminate({ status_code: e });
416
+ async terminateAsync({
417
+ status_code: t,
418
+ cause: n
419
+ } = {}) {
420
+ this.terminate({ status_code: t, cause: n });
425
421
  }
426
- terminateRemote({ status_code: e } = {}) {
427
- return this.status_code = e, this.trigger("ended", { status_code: e, originator: "remote" }), this;
422
+ terminateRemote({ status_code: t } = {}) {
423
+ return this.status_code = t, this.trigger("ended", { status_code: t, originator: "remote" }), this;
428
424
  }
429
- _addStream(e, n = "getTracks") {
430
- e[n]().forEach((i) => this.connection.addTrack(i));
425
+ addStream(t, n = "getTracks") {
426
+ t[n]().forEach((i) => this.connection.addTrack(i));
431
427
  }
432
- _forEachSenders(e) {
428
+ forEachSenders(t) {
433
429
  const n = this.connection.getSenders();
434
430
  for (const i of n)
435
- e(i);
431
+ t(i);
436
432
  return n;
437
433
  }
438
434
  /* eslint-disable no-param-reassign */
439
- _toggleMuteAudio(e) {
440
- this._forEachSenders(({ track: n }) => {
441
- n && n.kind === "audio" && (n.enabled = !e);
435
+ toggleMuteAudio(t) {
436
+ this.forEachSenders(({ track: n }) => {
437
+ n && n.kind === "audio" && (n.enabled = !t);
442
438
  });
443
439
  }
444
440
  /* eslint-enable no-param-reassign */
445
441
  /* eslint-disable no-param-reassign */
446
- _toggleMuteVideo(e) {
447
- this._forEachSenders(({ track: n }) => {
448
- n && n.kind === "video" && (n.enabled = !e);
442
+ toggleMuteVideo(t) {
443
+ this.forEachSenders(({ track: n }) => {
444
+ n && n.kind === "video" && (n.enabled = !t);
449
445
  });
450
446
  }
451
- mute(e) {
452
- e.audio && (this._mutedOptions.audio = !0, this._toggleMuteAudio(this._mutedOptions.audio)), e.video && (this._mutedOptions.video = !0, this._toggleMuteVideo(this._mutedOptions.video)), this._onmute(e);
447
+ mute(t) {
448
+ t.audio && (this.mutedOptions.audio = !0, this.toggleMuteAudio(this.mutedOptions.audio)), t.video && (this.mutedOptions.video = !0, this.toggleMuteVideo(this.mutedOptions.video)), this.onmute(t);
453
449
  }
454
- unmute(e) {
455
- e.audio && (this._mutedOptions.audio = !1), e.video && (this._mutedOptions.video = !1), this.trigger("unmuted", e);
450
+ unmute(t) {
451
+ t.audio && (this.mutedOptions.audio = !1), t.video && (this.mutedOptions.video = !1), this.trigger("unmuted", t);
456
452
  }
457
453
  isMuted() {
458
- return this._mutedOptions;
454
+ return this.mutedOptions;
459
455
  }
460
- async replaceMediaStream(e) {
461
- return e;
456
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function, class-methods-use-this
457
+ async replaceMediaStream(t) {
462
458
  }
463
- _onmute({ audio: e, video: n }) {
459
+ onmute({ audio: t, video: n }) {
464
460
  this.trigger("muted", {
465
- audio: e,
461
+ audio: t,
466
462
  video: n
467
463
  });
468
464
  }
465
+ // eslint-disable-next-line @typescript-eslint/no-empty-function, class-methods-use-this
469
466
  async sendInfo() {
470
467
  }
471
468
  isEnded() {
472
- return this._isEnded;
469
+ return this.isEndedInner;
473
470
  }
474
- newInfo(e) {
475
- this.trigger("newInfo", e);
471
+ newInfo(t) {
472
+ this.trigger("newInfo", t);
476
473
  }
477
474
  /* eslint-enable no-param-reassign */
478
475
  };
479
476
  r(a, "startPresentationError"), r(a, "countStartPresentationError", Number.POSITIVE_INFINITY), r(a, "countStartsPresentation", 0);
480
477
  let u = a;
481
- class G {
478
+ class B {
482
479
  constructor() {
483
480
  r(this, "extraHeaders", []);
484
481
  }
485
- setExtraHeaders(t) {
486
- this.extraHeaders = t;
482
+ setExtraHeaders(e) {
483
+ this.extraHeaders = e;
487
484
  }
485
+ // eslint-disable-next-line class-methods-use-this
488
486
  setExtraContactParams() {
489
487
  }
490
488
  }
491
- const c = "PASSWORD_CORRECT", T = "PASSWORD_CORRECT_2", j = "NAME_INCORRECT", m = 400, s = class s {
492
- constructor(t) {
493
- r(this, "_events");
494
- r(this, "_startedTimeout");
495
- r(this, "_stopedTimeout");
489
+ const h = "PASSWORD_CORRECT", R = "PASSWORD_CORRECT_2", K = "NAME_INCORRECT", m = 400, w = {
490
+ url: "wss://sipServerUrl/webrtc/wss/",
491
+ sip_uri: "sip:sipServerUrl;transport=ws",
492
+ via_transport: "WSS"
493
+ }, C = {
494
+ status_code: 200,
495
+ reason_phrase: "OK"
496
+ }, y = {
497
+ status_code: 401,
498
+ reason_phrase: "Unauthorized"
499
+ }, s = class s {
500
+ constructor(e) {
501
+ r(this, "events");
502
+ r(this, "registratorInner");
503
+ // @ts-expect-error
504
+ r(this, "call", jest.fn(
505
+ (e, t) => {
506
+ const { mediaStream: n, eventHandlers: i } = t;
507
+ return this.session = new u({ url: e, mediaStream: n, eventHandlers: i, originator: "local" }), this.session.connect(e), this.session;
508
+ }
509
+ ));
510
+ r(this, "startedTimeout");
511
+ r(this, "stopedTimeout");
496
512
  r(this, "session");
497
- r(this, "_isRegistered");
498
- r(this, "_isConnected");
513
+ r(this, "isRegisteredInner");
514
+ r(this, "isConnectedInner");
499
515
  r(this, "configuration");
500
- r(this, "_registrator");
501
- // @ts-expect-error
502
- r(this, "call", jest.fn((t, e) => {
503
- const { mediaStream: n, eventHandlers: i } = e;
504
- return this.session = new u({ url: t, mediaStream: n, eventHandlers: i, originator: "local" }), this.session.connect(t), this.session;
505
- }));
506
- this._events = new v(A);
507
- const [e, n] = t.uri.split(":"), [i, d] = n.split("@"), h = {
508
- ...t,
509
- uri: new E(e, i, d)
516
+ this.events = new N(L);
517
+ const [t, n] = e.uri.split(":"), [i, d] = n.split("@"), c = {
518
+ ...e,
519
+ uri: new _(t, i, d)
510
520
  };
511
- this.configuration = h, this._registrator = new G();
521
+ this.configuration = c, this.registratorInner = new B();
512
522
  }
513
- static setStartError(t, { count: e = Number.POSITIVE_INFINITY } = {}) {
514
- this.startError = t, this.countStartError = e;
523
+ static setStartError(e, { count: t = Number.POSITIVE_INFINITY } = {}) {
524
+ this.startError = e, this.countStartError = t;
515
525
  }
516
526
  static resetStartError() {
517
527
  this.startError = void 0, this.countStartError = Number.POSITIVE_INFINITY, this.countStarts = 0;
@@ -522,9 +532,6 @@ const c = "PASSWORD_CORRECT", T = "PASSWORD_CORRECT_2", j = "NAME_INCORRECT", m
522
532
  static setNotAvailableTelephony() {
523
533
  this.isAvailableTelephony = !1;
524
534
  }
525
- isConnected() {
526
- return !!this._isConnected;
527
- }
528
535
  /**
529
536
  * start
530
537
  *
@@ -543,27 +550,24 @@ const c = "PASSWORD_CORRECT", T = "PASSWORD_CORRECT_2", j = "NAME_INCORRECT", m
543
550
  * @returns {undefined}
544
551
  */
545
552
  stop() {
546
- this._startedTimeout && clearTimeout(this._startedTimeout), this._stopedTimeout && clearTimeout(this._stopedTimeout), this.unregister(), this.isStarted() ? this._stopedTimeout = setTimeout(() => {
547
- this.trigger("disconnected", { error: new Error("stoped") });
548
- }, m) : this.trigger("disconnected", { error: new Error("stoped") });
553
+ this.startedTimeout && clearTimeout(this.startedTimeout), this.stopedTimeout && clearTimeout(this.stopedTimeout), this.unregister(), this.isStarted() ? this.stopedTimeout = setTimeout(() => {
554
+ this.trigger("disconnected", { error: !0, socket: w });
555
+ }, m) : this.trigger("disconnected", { error: !0, socket: w });
549
556
  }
550
- // @ts-expect-error
551
- on(t, e) {
552
- return this._events.on(t, e), this;
557
+ on(e, t) {
558
+ return this.events.on(e, t), this;
553
559
  }
554
- // @ts-expect-error
555
- once(t, e) {
556
- return this._events.once(t, e), this;
560
+ once(e, t) {
561
+ return this.events.once(e, t), this;
557
562
  }
558
- // @ts-expect-error
559
- off(t, e) {
560
- return this._events.off(t, e), this;
563
+ off(e, t) {
564
+ return this.events.off(e, t), this;
561
565
  }
562
566
  removeAllListeners() {
563
- return this._events.removeEventHandlers(), this;
567
+ return this.events.removeEventHandlers(), this;
564
568
  }
565
- trigger(t, e) {
566
- this._events.trigger(t, e);
569
+ trigger(e, t) {
570
+ this.events.trigger(e, t);
567
571
  }
568
572
  /**
569
573
  * terminateSessions
@@ -571,18 +575,11 @@ const c = "PASSWORD_CORRECT", T = "PASSWORD_CORRECT_2", j = "NAME_INCORRECT", m
571
575
  * @returns {undefined}
572
576
  */
573
577
  terminateSessions() {
574
- this.session.terminate();
578
+ var e;
579
+ (e = this.session) == null || e.terminate();
575
580
  }
576
- /**
577
- * set
578
- *
579
- * @param {string} key - key
580
- * @param {string} value - value
581
- *
582
- * @returns {boolean} true
583
- */
584
- set(t, e) {
585
- return this.configuration[t] = e, !0;
581
+ set(e, t) {
582
+ return this.configuration[e] = t, !0;
586
583
  }
587
584
  /**
588
585
  * register
@@ -590,15 +587,15 @@ const c = "PASSWORD_CORRECT", T = "PASSWORD_CORRECT_2", j = "NAME_INCORRECT", m
590
587
  * @returns {undefined}
591
588
  */
592
589
  register() {
593
- this._startedTimeout && clearTimeout(this._startedTimeout);
594
- const { password: t, register: e, uri: n } = this.configuration;
595
- e && n.user.includes(j) ? (this._isRegistered = !1, this._isConnected = !1, this._startedTimeout = setTimeout(() => {
596
- this.trigger("registrationFailed", { response: null, cause: "Request Timeout" });
597
- }, m)) : !this._isRegistered && e && (t === c || t === T) ? (this._isRegistered = !0, this._startedTimeout = setTimeout(() => {
598
- this.trigger("registered");
599
- }, m)) : e && t !== c && t !== T && (this._isRegistered = !1, this._isConnected = !1, this._startedTimeout = setTimeout(() => {
600
- this.trigger("registrationFailed", { response: null, cause: "Wrong credentials" });
601
- }, m)), s.isAvailableTelephony ? (this.trigger("connected"), this._isConnected = !0) : this.stop();
590
+ this.startedTimeout && clearTimeout(this.startedTimeout);
591
+ const { password: e, register: t, uri: n } = this.configuration;
592
+ t === !0 && n.user.includes(K) ? (this.isRegisteredInner = !1, this.isConnectedInner = !1, this.startedTimeout = setTimeout(() => {
593
+ this.trigger("registrationFailed", { response: y, cause: T.causes.REJECTED });
594
+ }, m)) : !this.isRegistered() && t === !0 && (e === h || e === R) ? (this.isRegisteredInner = !0, this.startedTimeout = setTimeout(() => {
595
+ this.trigger("registered", { response: C });
596
+ }, m)) : t === !0 && e !== h && e !== R && (this.isRegisteredInner = !1, this.isConnectedInner = !1, this.startedTimeout = setTimeout(() => {
597
+ this.trigger("registrationFailed", { response: y, cause: T.causes.REJECTED });
598
+ }, m)), s.isAvailableTelephony ? (this.trigger("connected", { socket: w }), this.isConnectedInner = !0) : this.stop();
602
599
  }
603
600
  /**
604
601
  * unregister
@@ -606,15 +603,13 @@ const c = "PASSWORD_CORRECT", T = "PASSWORD_CORRECT_2", j = "NAME_INCORRECT", m
606
603
  * @returns {undefined}
607
604
  */
608
605
  unregister() {
609
- this._isRegistered = !1, this._isConnected = !1, this.trigger("unregistered");
606
+ this.isRegisteredInner = !1, this.isConnectedInner = !1, this.trigger("unregistered", { response: C });
610
607
  }
611
- /**
612
- * isRegistered
613
- *
614
- * @returns {boolean} isRegistered
615
- */
616
608
  isRegistered() {
617
- return !!this._isRegistered;
609
+ return this.isRegisteredInner === !0;
610
+ }
611
+ isConnected() {
612
+ return this.isConnectedInner === !0;
618
613
  }
619
614
  /**
620
615
  * isStarted
@@ -622,127 +617,133 @@ const c = "PASSWORD_CORRECT", T = "PASSWORD_CORRECT_2", j = "NAME_INCORRECT", m
622
617
  * @returns {boolean} isStarted
623
618
  */
624
619
  isStarted() {
625
- return this.configuration && (this.configuration.register && !!this._isRegistered || !this.configuration.register && !!this._isConnected);
620
+ return this.configuration.register === !0 && this.isRegisteredInner === !0 || this.configuration.register !== !0 && this.isConnectedInner === !0;
626
621
  }
627
- registrator() {
628
- return this._registrator;
622
+ newSipEvent(e) {
623
+ this.trigger("sipEvent", e);
629
624
  }
630
- newSipEvent(t) {
631
- this.trigger("sipEvent", t);
625
+ registrator() {
626
+ return this.registratorInner;
632
627
  }
633
628
  };
634
629
  r(s, "isAvailableTelephony", !0), r(s, "startError"), r(s, "countStartError", Number.POSITIVE_INFINITY), r(s, "countStarts", 0);
635
- let _ = s;
636
- class B {
637
- constructor(t) {
630
+ let E = s;
631
+ class X {
632
+ constructor(e) {
638
633
  r(this, "url");
639
- this.url = t;
634
+ this.url = e;
640
635
  }
641
636
  }
642
- class $ extends L {
643
- constructor(e, n) {
637
+ class Q extends x {
638
+ constructor(t, n) {
644
639
  super();
645
640
  r(this, "contentType");
646
641
  r(this, "body");
647
- this.contentType = e, this.body = n;
642
+ this.contentType = t, this.body = n;
648
643
  }
649
644
  }
650
- const w = "remote", K = (o, t) => {
651
- const e = new I(t), n = {
652
- originator: w,
653
- request: e,
654
- info: new $("", "")
645
+ const f = "remote", Z = (o, e) => {
646
+ const t = new S(e), n = {
647
+ originator: f,
648
+ request: t,
649
+ info: new Q("", "")
655
650
  };
656
651
  o.newInfo(n);
657
- }, J = (o, t) => {
658
- const n = { request: new I(t) };
652
+ }, ee = (o, e) => {
653
+ const n = { event: "sipEvent", request: new S(e) };
659
654
  o.newSipEvent(n);
660
- }, X = (o, {
661
- incomingNumber: t = "1234",
662
- displayName: e,
655
+ }, te = (o, {
656
+ incomingNumber: e = "1234",
657
+ displayName: t,
663
658
  host: n
664
659
  }) => {
665
- const i = new u({ originator: w }), d = new D("sip", t, n);
666
- i._remote_identity = new k(d, e), o.trigger("newRTCSession", { originator: w, session: i });
667
- }, Q = (o, t) => {
668
- t ? o.trigger("failed", t) : o.trigger("failed", o);
669
- }, R = {
670
- triggerNewInfo: K,
671
- triggerNewSipEvent: J,
672
- triggerIncomingSession: X,
673
- triggerFailIncomingSession: Q,
674
- WebSocketInterface: B,
675
- UA: _,
660
+ const i = new u({ originator: f, eventHandlers: {} }), d = new F("sip", e, n);
661
+ i.remote_identity = new V(d, t);
662
+ const c = new S([]);
663
+ o.trigger("newRTCSession", {
664
+ originator: f,
665
+ session: i,
666
+ request: c
667
+ });
668
+ }, re = (o, e) => {
669
+ e ? o.trigger("failed", e) : o.trigger("failed", o);
670
+ }, P = {
671
+ triggerNewInfo: Z,
672
+ triggerNewSipEvent: ee,
673
+ triggerIncomingSession: te,
674
+ triggerFailIncomingSession: re,
675
+ WebSocketInterface: X,
676
+ UA: E,
676
677
  C: {
677
678
  INVITE: "INVITE"
678
679
  }
679
- }, f = "user", l = "displayName", S = "SIP_SERVER_URL", C = "SIP_WEB_SOCKET_SERVER_URL", Z = new R.WebSocketInterface(C), M = {
680
+ }, I = "user", l = "displayName", M = "SIP_SERVER_URL", O = "SIP_WEB_SOCKET_SERVER_URL", ne = new P.WebSocketInterface(O), v = {
680
681
  userAgent: "Chrome",
681
- sipServerUrl: S,
682
- sipWebSocketServerURL: C
683
- }, me = {
684
- ...M
685
- }, ee = {
686
- ...M,
687
- user: f,
688
- password: c,
682
+ sipServerUrl: M,
683
+ sipWebSocketServerURL: O
684
+ }, ge = {
685
+ ...v
686
+ }, oe = {
687
+ ...v,
688
+ user: I,
689
+ password: h,
689
690
  register: !0
690
- }, ue = {
691
- ...ee,
691
+ }, we = {
692
+ ...oe,
692
693
  displayName: l
693
- }, le = {
694
- ...M,
694
+ }, Ee = {
695
+ ...v,
695
696
  displayName: l,
696
697
  register: !1
697
- }, g = {
698
+ }, p = {
698
699
  session_timers: !1,
699
- sockets: [Z],
700
+ sockets: [ne],
700
701
  user_agent: "Chrome",
701
702
  sdp_semantics: "unified-plan",
702
703
  register_expires: 300,
703
704
  connection_recovery_max_interval: 6,
704
705
  connection_recovery_min_interval: 2
705
- }, ge = {
706
- ...g,
707
- password: c,
708
- uri: new E("sip", f, S),
706
+ }, fe = {
707
+ ...p,
708
+ password: h,
709
+ uri: new _("sip", I, M),
709
710
  display_name: "",
710
711
  register: !0
711
- }, pe = {
712
- ...g,
713
- password: c,
714
- uri: new E("sip", f, S),
712
+ }, _e = {
713
+ ...p,
714
+ password: h,
715
+ uri: new _("sip", I, M),
715
716
  display_name: l,
716
717
  register: !0
717
- }, _e = {
718
- ...g,
718
+ }, Se = {
719
+ ...p,
719
720
  display_name: l,
720
721
  register: !1
721
- }, we = {
722
- ...g,
722
+ }, Ie = {
723
+ ...p,
723
724
  display_name: "",
724
725
  register: !1
725
- }, te = "10.10.10.10", Ee = [`X-Vinteo-Remote: ${te}`], fe = () => new b({
726
- JsSIP: R
726
+ }, ie = "10.10.10.10", Me = [`X-Vinteo-Remote: ${ie}`], ve = () => new W({
727
+ JsSIP: P
727
728
  });
728
729
  export {
729
- Y as FAILED_CONFERENCE_NUMBER,
730
- j as NAME_INCORRECT,
731
- c as PASSWORD_CORRECT,
732
- T as PASSWORD_CORRECT_2,
733
- S as SIP_SERVER_URL,
734
- C as SIP_WEB_SOCKET_SERVER_URL,
735
- ee as dataForConnectionWithAuthorization,
736
- ue as dataForConnectionWithAuthorizationWithDisplayName,
737
- le as dataForConnectionWithoutAuthorization,
738
- me as dataForConnectionWithoutAuthorizationWithoutDisplayName,
730
+ $ as FAILED_CONFERENCE_NUMBER,
731
+ K as NAME_INCORRECT,
732
+ h as PASSWORD_CORRECT,
733
+ R as PASSWORD_CORRECT_2,
734
+ M as SIP_SERVER_URL,
735
+ O as SIP_WEB_SOCKET_SERVER_URL,
736
+ oe as dataForConnectionWithAuthorization,
737
+ we as dataForConnectionWithAuthorizationWithDisplayName,
738
+ Ee as dataForConnectionWithoutAuthorization,
739
+ ge as dataForConnectionWithoutAuthorizationWithoutDisplayName,
739
740
  l as displayName,
740
- fe as doMockSipConnector,
741
- Ee as extraHeadersRemoteAddress,
742
- te as remoteAddress,
743
- ge as uaConfigurationWithAuthorization,
744
- pe as uaConfigurationWithAuthorizationWithDisplayName,
745
- _e as uaConfigurationWithoutAuthorization,
746
- we as uaConfigurationWithoutAuthorizationWithoutDisplayName,
747
- f as user
741
+ ve as doMockSipConnector,
742
+ Me as extraHeadersRemoteAddress,
743
+ ie as remoteAddress,
744
+ fe as uaConfigurationWithAuthorization,
745
+ _e as uaConfigurationWithAuthorizationWithDisplayName,
746
+ Se as uaConfigurationWithoutAuthorization,
747
+ Ie as uaConfigurationWithoutAuthorizationWithoutDisplayName,
748
+ I as user
748
749
  };