mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-19 04:27:46 +00:00
clean sbc addresses at startup
This commit is contained in:
1
app.js
1
app.js
@@ -99,6 +99,7 @@ srf.on('connect', (err, hp) => {
|
||||
logger.info(`adding sbc public address to database: ${arr[2]}`);
|
||||
srf.locals.sbcPublicIpAddress = `${arr[2]}:${arr[3]}`;
|
||||
addSbcAddress(arr[2]);
|
||||
cleanSbcAddresses();
|
||||
// keep alive for this SBC
|
||||
setTimeout(() => {
|
||||
addSbcAddress(arr[2]);
|
||||
|
||||
Reference in New Issue
Block a user