调整 /register 只注册已启用的设备
This commit is contained in:
parent
f71e328850
commit
157b591c3a
@ -84,6 +84,7 @@ public class RegisterService {
|
|||||||
CompletableFuture<JsonResponse<Void>> result = new CompletableFuture<>();
|
CompletableFuture<JsonResponse<Void>> result = new CompletableFuture<>();
|
||||||
if(!device.getEnable()){
|
if(!device.getEnable()){
|
||||||
result.complete(JsonResponse.success(null));
|
result.complete(JsonResponse.success(null));
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
sender.sendRequest((provider, ip, port) -> {
|
sender.sendRequest((provider, ip, port) -> {
|
||||||
CallIdHeader callIdHeader = provider.getNewCallId();
|
CallIdHeader callIdHeader = provider.getNewCallId();
|
||||||
|
Loading…
Reference in New Issue
Block a user