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.mjs
CHANGED
|
@@ -66698,7 +66698,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
|
|
|
66698
66698
|
_defineProperty(SipPhone$1, "sipVersion", version$1);
|
|
66699
66699
|
//#endregion
|
|
66700
66700
|
//#region src/version.ts
|
|
66701
|
-
const version = "26.4.
|
|
66701
|
+
const version = "26.4.26";
|
|
66702
66702
|
//#endregion
|
|
66703
66703
|
//#region src/socket/errors.ts
|
|
66704
66704
|
/**
|
|
@@ -68873,7 +68873,14 @@ var Call = class {
|
|
|
68873
68873
|
this.hangupSipCode = hangup.sip;
|
|
68874
68874
|
this.notificationHangup = hangup.notification_hangup || false;
|
|
68875
68875
|
this.voice = false;
|
|
68876
|
+
if (Array.isArray(this.peerStreams)) this.peerStreams.forEach((stream) => {
|
|
68877
|
+
if (stream && typeof stream.getTracks === "function") stream.getTracks().forEach((track) => track.stop());
|
|
68878
|
+
});
|
|
68879
|
+
if (Array.isArray(this.localStreams)) this.localStreams.forEach((stream) => {
|
|
68880
|
+
if (stream && typeof stream.getTracks === "function") stream.getTracks().forEach((track) => track.stop());
|
|
68881
|
+
});
|
|
68876
68882
|
this.peerStreams = [];
|
|
68883
|
+
this.localStreams = [];
|
|
68877
68884
|
if (+hangup.reporting_at) this.reportingAt = +hangup.reporting_at;
|
|
68878
68885
|
if (this._recordFile) this.stopRecord();
|
|
68879
68886
|
this.setState(s);
|