648540858
2023-05-04 381c3bdc2079ece5147cf4cee004e9071edadf7a
src/main/java/com/genersoft/iot/vmp/conf/SipPlatformRunner.java
@@ -48,10 +48,13 @@
            parentPlatformCatch.setParentPlatform(parentPlatform);
            parentPlatformCatch.setId(parentPlatform.getServerGBId());
            redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch);
            // 取消订阅
            sipCommanderForPlatform.unregister(parentPlatform, parentPlatformCatchOld.getSipTransactionInfo(), null, (eventResult)->{
                platformService.login(parentPlatform);
            });
            if (parentPlatformCatchOld != null) {
                // 取消订阅
                sipCommanderForPlatform.unregister(parentPlatform, parentPlatformCatchOld.getSipTransactionInfo(), null, (eventResult)->{
                    platformService.login(parentPlatform);
                });
            }
            // 设置所有平台离线
            platformService.offline(parentPlatform, true);
        }