opensips-js 0.1.28 → 0.1.29
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
|
@@ -19654,7 +19654,7 @@ class $T {
|
|
|
19654
19654
|
this._ua.clearKeepAliveInterval(), this._ua.setLastRegisterTimestamp();
|
|
19655
19655
|
let d = r.getParam("expires");
|
|
19656
19656
|
!d && o.hasHeader("expires") && (d = o.getHeader("expires")), d || (d = this._expires), d = Number(d), d < fa && (d = fa);
|
|
19657
|
-
const h = d > 64 ? d * 1e3 / 2 + Math.floor((d / 2 - 32) * 1e3 * Math.random()) : d * 1e3
|
|
19657
|
+
const h = d > 64 ? d * 1e3 / 2 + Math.floor((d / 2 - 32) * 1e3 * Math.random()) : Math.floor(d * 1e3 / 2);
|
|
19658
19658
|
this._registrationTimer = setTimeout(() => {
|
|
19659
19659
|
this._registrationTimer = null, this._ua.listeners("registrationExpiring").length === 0 ? this.register() : this._ua.emit("registrationExpiring");
|
|
19660
19660
|
}, h), r.hasParam("temp-gruu") && (this._ua.contact.temp_gruu = r.getParam("temp-gruu").replace(/"/g, "")), r.hasParam("pub-gruu") && (this._ua.contact.pub_gruu = r.getParam("pub-gruu").replace(/"/g, "")), this._registered || (this._registered = !0, this._ua.registered({ response: o }));
|