From 72b437cc52e2907c9a66d6bda60acbffc736cdb8 Mon Sep 17 00:00:00 2001 From: BradyXu Date: Sun, 12 May 2024 02:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93=E4=B8=8A=E7=BA=A7?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=82=B9=E6=92=AD=E6=97=B6=EF=BC=8C=E4=B8=8A?= =?UTF-8?q?=E7=BA=A7=E5=B9=B3=E5=8F=B0=E5=92=8C=E4=B8=8B=E7=BA=A7=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E5=B1=80=E5=9F=9F=E7=BD=91=E4=B8=8D=E9=80=9A=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=8E=A8=E6=B5=81=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E3=80=82=E6=8E=A8=E6=B5=81=E7=9B=AE=E6=A0=87IP=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E6=94=B9=E4=B8=BA=E9=85=8D=E7=BD=AE=E7=9A=84SDP?= =?UTF-8?q?=E5=8F=91=E6=B5=81IP=EF=BC=8C=E5=A6=82=E6=9E=9CSDP=E5=8F=91?= =?UTF-8?q?=E6=B5=81IP=E5=AD=98=E5=9C=A8=E7=9A=84=E8=AF=9D=E3=80=82?= =?UTF-8?q?=E5=90=A6=E5=88=99=E8=BF=98=E6=98=AF=E4=BB=8E=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E4=B8=AD=E8=8E=B7=E5=8F=96=E6=8E=A8=E6=B5=81=E7=9B=AE=E6=A0=87?= =?UTF-8?q?IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../event/request/impl/InviteRequestProcessor.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/InviteRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/InviteRequestProcessor.java index 794a0dc7..e3a25ec8 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/InviteRequestProcessor.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/InviteRequestProcessor.java @@ -335,8 +335,12 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements return; } String username = sdp.getOrigin().getUsername(); - String addressStr = sdp.getConnection().getAddress(); - + String addressStr; + if(StringUtils.isEmpty(platform.getSendStreamIp())){ + addressStr = sdp.getConnection().getAddress(); + }else { + addressStr = platform.getSendStreamIp(); + } Device device = null; // 通过 channel 和 gbStream 是否为null 值判断来源是直播流合适国标