This commit is contained in:
zxb 2023-08-07 15:44:07 +08:00
parent 6709c951ed
commit 9e0e8878ca

View File

@ -98,7 +98,7 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
device.setExpires(request.getExpires().getExpires());
device.setIp(remoteAddressInfo.getIp());
device.setPort(remoteAddressInfo.getPort());
device.setHostAddress(remoteAddressInfo.getIp().concat(":").concat(String.valueOf(remoteAddressInfo.getPort())));
device.setHostAddress(String.join(":",remoteAddressInfo.getIp(),String.valueOf(remoteAddressInfo.getPort())));
device.setLocalIp(request.getLocalAddress().getHostAddress());
Response registerOkResponse = getRegisterOkResponse(request);
// 判断TCP还是UDP