opensips-js 0.1.30 → 0.1.31
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/dist/opensips-js.es.js
CHANGED
|
@@ -24388,7 +24388,10 @@ class hS {
|
|
|
24388
24388
|
event: o
|
|
24389
24389
|
}), n.connection) {
|
|
24390
24390
|
const d = n.connection.connectionState;
|
|
24391
|
-
(d === "closed" || d === "disconnected") && this.context.emit("connectionStateChange",
|
|
24391
|
+
(d === "closed" || d === "disconnected") && this.context.emit("connectionStateChange", {
|
|
24392
|
+
session: n,
|
|
24393
|
+
connectionState: d
|
|
24394
|
+
});
|
|
24392
24395
|
}
|
|
24393
24396
|
["enabled", "dynamic"].includes(this.noiseReduction.mode) && this.stopSessionVad(n._id);
|
|
24394
24397
|
const s = this.getActiveCalls[n.id];
|
|
@@ -24408,7 +24411,10 @@ class hS {
|
|
|
24408
24411
|
event: o
|
|
24409
24412
|
}), n.connection) {
|
|
24410
24413
|
const d = n.connection.connectionState;
|
|
24411
|
-
(d === "closed" || d === "disconnected") && this.context.emit("connectionStateChange",
|
|
24414
|
+
(d === "closed" || d === "disconnected") && this.context.emit("connectionStateChange", {
|
|
24415
|
+
session: n,
|
|
24416
|
+
connectionState: d
|
|
24417
|
+
});
|
|
24412
24418
|
}
|
|
24413
24419
|
["enabled", "dynamic"].includes(this.noiseReduction.mode) && this.stopSessionVad(n._id), n.id === this.callAddingInProgress && (this.callAddingInProgress = void 0);
|
|
24414
24420
|
const s = this.getActiveCalls[n.id];
|
|
@@ -24423,7 +24429,10 @@ class hS {
|
|
|
24423
24429
|
});
|
|
24424
24430
|
const a = (o) => {
|
|
24425
24431
|
o && o.addEventListener("connectionstatechange", (s) => {
|
|
24426
|
-
this.context.emit("connectionStateChange",
|
|
24432
|
+
this.context.emit("connectionStateChange", {
|
|
24433
|
+
session: n,
|
|
24434
|
+
connectionState: o.connectionState
|
|
24435
|
+
});
|
|
24427
24436
|
});
|
|
24428
24437
|
};
|
|
24429
24438
|
if (n.connection && a(n.connection), n.on("peerconnection", ({ peerconnection: o }) => {
|