webitel-sdk 26.4.24 → 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 +9 -1
- package/index.cjs.map +1 -1
- package/index.mjs +9 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/sip/webrtc/index.d.ts.map +1 -1
- package/socket/call.d.ts.map +1 -1
- package/version.d.ts +1 -1
package/index.cjs
CHANGED
|
@@ -66185,6 +66185,7 @@ var Session$2 = class {
|
|
|
66185
66185
|
const { debug, version: version$2, UA, WebSocketInterface } = jssip_lib_JsSIP_js.default;
|
|
66186
66186
|
function patchRemoteSdp(sdp) {
|
|
66187
66187
|
sdp = sdp.replace(/a=rtpmap:(\d+) H264\/90000\r\n(?!a=fmtp:\1)/g, "a=rtpmap:$1 H264/90000\r\na=fmtp:$1 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f\r\n");
|
|
66188
|
+
sdp = sdp.replace(/(a=fmtp:\d+ [^\r\n]*packetization-mode[^\r\n]*)/g, "$1;x-google-start-bitrate=1500;x-google-min-bitrate=800;x-google-max-bitrate=3000");
|
|
66188
66189
|
return sdp;
|
|
66189
66190
|
}
|
|
66190
66191
|
var SipPhone = class SipPhone extends ee_ts.EventEmitter {
|
|
@@ -66722,7 +66723,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
|
|
|
66722
66723
|
_defineProperty(SipPhone$1, "sipVersion", version$1);
|
|
66723
66724
|
//#endregion
|
|
66724
66725
|
//#region src/version.ts
|
|
66725
|
-
const version = "26.4.
|
|
66726
|
+
const version = "26.4.26";
|
|
66726
66727
|
//#endregion
|
|
66727
66728
|
//#region src/socket/errors.ts
|
|
66728
66729
|
/**
|
|
@@ -68897,7 +68898,14 @@ var Call = class {
|
|
|
68897
68898
|
this.hangupSipCode = hangup.sip;
|
|
68898
68899
|
this.notificationHangup = hangup.notification_hangup || false;
|
|
68899
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
|
+
});
|
|
68900
68907
|
this.peerStreams = [];
|
|
68908
|
+
this.localStreams = [];
|
|
68901
68909
|
if (+hangup.reporting_at) this.reportingAt = +hangup.reporting_at;
|
|
68902
68910
|
if (this._recordFile) this.stopRecord();
|
|
68903
68911
|
this.setState(s);
|