648540858
2022-10-13 92022f8a8b7bccc865c47bd8cfafaffb91c2799c
src/main/java/com/genersoft/iot/vmp/conf/SipPlatformRunner.java
@@ -46,17 +46,12 @@
            parentPlatformCatch.setParentPlatform(parentPlatform);
            parentPlatformCatch.setId(parentPlatform.getServerGBId());
            redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch);
            if (parentPlatform.isStatus()) {
                // 设置所有平台离线
                platformService.offline(parentPlatform);
                // 取消订阅
                sipCommanderForPlatform.unregister(parentPlatform, null, (eventResult)->{
                    platformService.login(parentPlatform);
                });
            }else {
            // 设置所有平台离线
            platformService.offline(parentPlatform);
            // 取消订阅
            sipCommanderForPlatform.unregister(parentPlatform, null, (eventResult)->{
                platformService.login(parentPlatform);
            }
            });
        }
    }
}