diff --git a/lib/sip-trunk-register.js b/lib/sip-trunk-register.js index 5102189..81fb392 100644 --- a/lib/sip-trunk-register.js +++ b/lib/sip-trunk-register.js @@ -177,7 +177,7 @@ class Regbot { expires = MIN_EXPIRES; } debug(`setting timer for next register to ${expires} seconds`); - this.timer = setTimeout(this.register.bind(this, srf), (expires - 5) * 1000); + this.timer = setTimeout(this.register.bind(this, srf), (expires / 2) * 1000); } updateVoipCarriersRegisterStatus(this.voip_carrier_sid, JSON.stringify({ status: res.status === 200 ? 'ok' : 'fail',