修复注册是数据传输模式被回复默认
This commit is contained in:
parent
689d7c0cc4
commit
b92027f31e
@ -116,9 +116,12 @@ public class RegisterRequestProcessor extends SIPRequestAbstractProcessor {
|
||||
AddressImpl address = (AddressImpl) fromHeader.getAddress();
|
||||
SipUri uri = (SipUri) address.getURI();
|
||||
String deviceId = uri.getUser();
|
||||
device = new Device();
|
||||
device.setStreamMode("UDP");
|
||||
device.setDeviceId(deviceId);
|
||||
device = storager.queryVideoDevice(deviceId);
|
||||
if (device == null) {
|
||||
device = new Device();
|
||||
device.setStreamMode("UDP");
|
||||
device.setDeviceId(deviceId);
|
||||
}
|
||||
device.setIp(received);
|
||||
device.setPort(rPort);
|
||||
device.setHostAddress(received.concat(":").concat(String.valueOf(rPort)));
|
||||
|
Loading…
Reference in New Issue
Block a user