pull/457/head
648540858 2022-04-26 18:46:18 +08:00
parent 363606d845
commit 102aad1f5d
1 changed files with 6 additions and 4 deletions

View File

@ -90,10 +90,12 @@ public class RegisterResponseProcessor extends SIPResponseProcessorAbstract {
redisCatchStorage.delPlatformCatchInfo(platformGBId); redisCatchStorage.delPlatformCatchInfo(platformGBId);
// 取回Expires设置避免注销过程中被置为0 // 取回Expires设置避免注销过程中被置为0
ParentPlatform parentPlatformTmp = storager.queryParentPlatByServerGBId(platformGBId); ParentPlatform parentPlatformTmp = storager.queryParentPlatByServerGBId(platformGBId);
parentPlatformTmp.setStatus("注册".equals(action)); if (parentPlatformTmp != null) {
redisCatchStorage.updatePlatformRegister(parentPlatformTmp); parentPlatformTmp.setStatus("注册".equals(action));
redisCatchStorage.updatePlatformKeepalive(parentPlatformTmp); redisCatchStorage.updatePlatformRegister(parentPlatformTmp);
parentPlatformCatch.setParentPlatform(parentPlatformTmp); redisCatchStorage.updatePlatformKeepalive(parentPlatformTmp);
parentPlatformCatch.setParentPlatform(parentPlatformTmp);
}
redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch); redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch);
storager.updateParentPlatformStatus(platformGBId, "注册".equals(action)); storager.updateParentPlatformStatus(platformGBId, "注册".equals(action));
if ("注销".equals(action)) { if ("注销".equals(action)) {