From e09e541c827157884e013ff0b50aa88b8b0f46be Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: Fri, 15 Jan 2021 17:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=90=91=E4=B8=8A=E7=BA=A7?= =?UTF-8?q?=E8=81=94->=E7=82=B9=E6=92=AD--=E7=B2=BE=E7=AE=80=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../transmit/request/impl/InviteRequestProcessor.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/InviteRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/InviteRequestProcessor.java index c15b7ca2..4dea5d44 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/InviteRequestProcessor.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/InviteRequestProcessor.java @@ -75,10 +75,6 @@ public class InviteRequestProcessor extends SIPRequestAbstractProcessor { SipUri uri = (SipUri) address.getURI(); platformId = uri.getUser(); -// if (platformId == null) { // 不存在则从fromHeader 获取平台信息 -// FromHeader fromHeader = (FromHeader)request.getHeader(FromHeader.NAME); -// platformId = fromHeader.getName(); -// } if (platformId == null || channelId == null) { response400Ack(evt); // 参数不全, 发400,请求错误 return; @@ -92,9 +88,7 @@ public class InviteRequestProcessor extends SIPRequestAbstractProcessor { response100Ack(evt); // 通道存在,发100,trying } // 解析sdp消息 - byte[] sdpByteArray = request.getRawContent(); - SdpParser sdpParser = new SdpParser(); // TODO keng - SessionDescription sdp = sdpParser.parse(sdpByteArray); + SessionDescription sdp = new SdpParser().parse(request.getRawContent()); // 获取支持的格式 List mediaDescriptions = sdp.getMediaDescriptions(); // 查看是否支持PS 负载96