重启服务时上级平台直接注销再注册
This commit is contained in:
parent
6a5ab117f5
commit
a6f9c090cb
@ -46,17 +46,12 @@ public class SipPlatformRunner implements CommandLineRunner {
|
||||
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);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user