webitel-sdk 26.4.25 → 26.4.26
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/index.cjs +8 -1
- package/index.cjs.map +1 -1
- package/index.mjs +8 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/socket/call.d.ts.map +1 -1
- package/version.d.ts +1 -1
package/index.cjs
CHANGED
|
@@ -66723,7 +66723,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
|
|
|
66723
66723
|
_defineProperty(SipPhone$1, "sipVersion", version$1);
|
|
66724
66724
|
//#endregion
|
|
66725
66725
|
//#region src/version.ts
|
|
66726
|
-
const version = "26.4.
|
|
66726
|
+
const version = "26.4.26";
|
|
66727
66727
|
//#endregion
|
|
66728
66728
|
//#region src/socket/errors.ts
|
|
66729
66729
|
/**
|
|
@@ -68898,7 +68898,14 @@ var Call = class {
|
|
|
68898
68898
|
this.hangupSipCode = hangup.sip;
|
|
68899
68899
|
this.notificationHangup = hangup.notification_hangup || false;
|
|
68900
68900
|
this.voice = false;
|
|
68901
|
+
if (Array.isArray(this.peerStreams)) this.peerStreams.forEach((stream) => {
|
|
68902
|
+
if (stream && typeof stream.getTracks === "function") stream.getTracks().forEach((track) => track.stop());
|
|
68903
|
+
});
|
|
68904
|
+
if (Array.isArray(this.localStreams)) this.localStreams.forEach((stream) => {
|
|
68905
|
+
if (stream && typeof stream.getTracks === "function") stream.getTracks().forEach((track) => track.stop());
|
|
68906
|
+
});
|
|
68901
68907
|
this.peerStreams = [];
|
|
68908
|
+
this.localStreams = [];
|
|
68902
68909
|
if (+hangup.reporting_at) this.reportingAt = +hangup.reporting_at;
|
|
68903
68910
|
if (this._recordFile) this.stopRecord();
|
|
68904
68911
|
this.setState(s);
|