From b46e5efad22fb810e49f0a2e7835d785e85b4860 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 01 九月 2022 22:27:18 +0800 Subject: [PATCH] 测试sip消息预处理 --- src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java index c24e0ca..3438893 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java @@ -4,6 +4,7 @@ import com.genersoft.iot.vmp.utils.DateUtil; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; +import org.springframework.util.ObjectUtils; import org.springframework.util.StringUtils; import java.net.InetAddress; @@ -88,7 +89,7 @@ } public String getHookIp() { - if (StringUtils.isEmpty(hookIp)){ + if (ObjectUtils.isEmpty(hookIp)){ return sipIp; }else { return hookIp; @@ -162,7 +163,7 @@ } public String getSdpIp() { - if (StringUtils.isEmpty(sdpIp)){ + if (ObjectUtils.isEmpty(sdpIp)){ return ip; }else { if (isValidIPAddress(sdpIp)) { @@ -181,7 +182,7 @@ } public String getStreamIp() { - if (StringUtils.isEmpty(streamIp)){ + if (ObjectUtils.isEmpty(streamIp)){ return ip; }else { return streamIp; -- Gitblit v1.8.0