mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-19 04:27:46 +00:00
Change timer for next REGISTER expires / 2 to avoid delayed registrations (#74)
Co-authored-by: Markus Frindt <m.frindt@cognigy.com>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user