Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0
This commit is contained in:
commit
cef04a8b5a
@ -48,10 +48,13 @@ public class SipPlatformRunner implements CommandLineRunner {
|
|||||||
parentPlatformCatch.setParentPlatform(parentPlatform);
|
parentPlatformCatch.setParentPlatform(parentPlatform);
|
||||||
parentPlatformCatch.setId(parentPlatform.getServerGBId());
|
parentPlatformCatch.setId(parentPlatform.getServerGBId());
|
||||||
redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch);
|
redisCatchStorage.updatePlatformCatchInfo(parentPlatformCatch);
|
||||||
// 取消订阅
|
if (parentPlatformCatchOld != null) {
|
||||||
sipCommanderForPlatform.unregister(parentPlatform, parentPlatformCatchOld.getSipTransactionInfo(), null, (eventResult)->{
|
// 取消订阅
|
||||||
platformService.login(parentPlatform);
|
sipCommanderForPlatform.unregister(parentPlatform, parentPlatformCatchOld.getSipTransactionInfo(), null, (eventResult)->{
|
||||||
});
|
platformService.login(parentPlatform);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 设置所有平台离线
|
// 设置所有平台离线
|
||||||
platformService.offline(parentPlatform, true);
|
platformService.offline(parentPlatform, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user