调整 /register 只注册已启用的设备

This commit is contained in:
shikong 2023-09-21 09:19:19 +08:00
parent f71e328850
commit 157b591c3a

View File

@ -84,6 +84,7 @@ public class RegisterService {
CompletableFuture<JsonResponse<Void>> result = new CompletableFuture<>();
if(!device.getEnable()){
result.complete(JsonResponse.success(null));
return result;
}
sender.sendRequest((provider, ip, port) -> {
CallIdHeader callIdHeader = provider.getNewCallId();