This commit is contained in:
Quan HL
2025-06-23 12:50:37 +07:00
parent 9ecc3696b4
commit f3b446b94a

View File

@@ -228,7 +228,7 @@ const updateCarrierRegbots = async(logger, srf) => {
let batch_count = 0;
for (const gw of getUniqueGateways(gateways, logger)) {
// find gateway account sip realm.
if (gw.carrier.account_sid) {
if (!gw.carrier.register_public_ip_in_contact && gw.carrier.account_sid) {
const account = await lookupAccountBySid(gw.carrier.account_sid);
if (account && account.sip_realm) {
gw.account_sip_realm = account.sip_realm;