From 0f1e7721682442a69635c029e13c330ba54656d9 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Tue, 12 Mar 2024 10:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../request/recordinfo/RecordInfoRequestProcessor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/core/sip/message/processor/message/request/recordinfo/RecordInfoRequestProcessor.java b/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/core/sip/message/processor/message/request/recordinfo/RecordInfoRequestProcessor.java index 5af5934..0b01882 100644 --- a/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/core/sip/message/processor/message/request/recordinfo/RecordInfoRequestProcessor.java +++ b/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/core/sip/message/processor/message/request/recordinfo/RecordInfoRequestProcessor.java @@ -148,7 +148,7 @@ public class RecordInfoRequestProcessor { FromHeader fromHeader = request.getFromHeader(); ListUtil.partition(recordInfoItemDTOList,50).forEach(recordList->{ - RecordInfoResponseDTO recordInfoResponseDTO = new RecordInfoResponseDTO(); + final RecordInfoResponseDTO recordInfoResponseDTO = new RecordInfoResponseDTO(); recordInfoResponseDTO.setSn(recordInfoRequestDTO.getSn()); recordInfoResponseDTO.setDeviceId(device.getGbChannelId()); recordInfoResponseDTO.setName(device.getName()); @@ -159,10 +159,11 @@ public class RecordInfoRequestProcessor { .build(); recordInfoResponseDTO.setRecordList(recordListDTO); + final String xml = XmlUtils.toXml(recordInfoResponseDTO); sender.sendRequest((provider, ip, port) -> { CallIdHeader callIdHeader = provider.getNewCallId(); return SipRequestBuilder.createMessageRequest(device, - ip, port, 1, XmlUtils.toXml(recordInfoResponseDTO), fromHeader.getTag(), callIdHeader); + ip, port, 1, xml, fromHeader.getTag(), callIdHeader); }); }); }