From 6968839f21fb05bf6e3204c2040ee47130006cd0 Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: Sun, 27 Dec 2020 08:19:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java index 4c14152b..50ec4551 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java @@ -289,6 +289,10 @@ public class SIPCommander implements ISIPCommander { } String streamMode = device.getStreamMode().toUpperCase(); MediaServerConfig mediaInfo = storager.getMediaInfo(); + if (mediaInfo == null) { + logger.warn("点播时发现ZLM尚未连接..."); + return; + } String mediaPort = null; // 使用动态udp端口 if (rtpEnable) { @@ -347,8 +351,6 @@ public class SIPCommander implements ISIPCommander { storager.updateChannel(device.getDeviceId(), deviceChannel); } - // TODO 订阅SIP response,处理对方的错误返回 - } catch ( SipException | ParseException | InvalidArgumentException e) { e.printStackTrace();