opensips-js-vue 0.1.19 → 0.1.20

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/library/super.mjs CHANGED
@@ -19657,7 +19657,7 @@ class b1 {
19657
19657
  this._ua.clearKeepAliveInterval(), this._ua.setLastRegisterTimestamp();
19658
19658
  let g = f.getParam("expires");
19659
19659
  !g && c.hasHeader("expires") && (g = c.getHeader("expires")), g || (g = this._expires), g = Number(g), g < Tu && (g = Tu);
19660
- const d = g > 64 ? g * 1e3 / 2 + Math.floor((g / 2 - 32) * 1e3 * Math.random()) : g * 1e3 - 5e3;
19660
+ const d = g > 64 ? g * 1e3 / 2 + Math.floor((g / 2 - 32) * 1e3 * Math.random()) : Math.floor(g * 1e3 / 2);
19661
19661
  this._registrationTimer = setTimeout(() => {
19662
19662
  this._registrationTimer = null, this._ua.listeners("registrationExpiring").length === 0 ? this.register() : this._ua.emit("registrationExpiring");
19663
19663
  }, d), f.hasParam("temp-gruu") && (this._ua.contact.temp_gruu = f.getParam("temp-gruu").replace(/"/g, "")), f.hasParam("pub-gruu") && (this._ua.contact.pub_gruu = f.getParam("pub-gruu").replace(/"/g, "")), this._registered || (this._registered = !0, this._ua.registered({ response: c }));