调整
This commit is contained in:
parent
fb02f559d4
commit
0f1e772168
@ -148,7 +148,7 @@ public class RecordInfoRequestProcessor {
|
|||||||
|
|
||||||
FromHeader fromHeader = request.getFromHeader();
|
FromHeader fromHeader = request.getFromHeader();
|
||||||
ListUtil.partition(recordInfoItemDTOList,50).forEach(recordList->{
|
ListUtil.partition(recordInfoItemDTOList,50).forEach(recordList->{
|
||||||
RecordInfoResponseDTO recordInfoResponseDTO = new RecordInfoResponseDTO();
|
final RecordInfoResponseDTO recordInfoResponseDTO = new RecordInfoResponseDTO();
|
||||||
recordInfoResponseDTO.setSn(recordInfoRequestDTO.getSn());
|
recordInfoResponseDTO.setSn(recordInfoRequestDTO.getSn());
|
||||||
recordInfoResponseDTO.setDeviceId(device.getGbChannelId());
|
recordInfoResponseDTO.setDeviceId(device.getGbChannelId());
|
||||||
recordInfoResponseDTO.setName(device.getName());
|
recordInfoResponseDTO.setName(device.getName());
|
||||||
@ -159,10 +159,11 @@ public class RecordInfoRequestProcessor {
|
|||||||
.build();
|
.build();
|
||||||
recordInfoResponseDTO.setRecordList(recordListDTO);
|
recordInfoResponseDTO.setRecordList(recordListDTO);
|
||||||
|
|
||||||
|
final String xml = XmlUtils.toXml(recordInfoResponseDTO);
|
||||||
sender.sendRequest((provider, ip, port) -> {
|
sender.sendRequest((provider, ip, port) -> {
|
||||||
CallIdHeader callIdHeader = provider.getNewCallId();
|
CallIdHeader callIdHeader = provider.getNewCallId();
|
||||||
return SipRequestBuilder.createMessageRequest(device,
|
return SipRequestBuilder.createMessageRequest(device,
|
||||||
ip, port, 1, XmlUtils.toXml(recordInfoResponseDTO), fromHeader.getTag(), callIdHeader);
|
ip, port, 1, xml, fromHeader.getTag(), callIdHeader);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user