Commit e09e541c827157884e013ff0b50aa88b8b0f46be

Authored by panlinlin
1 parent 503f891c

完成向上级联->点播--精简代码

src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/InviteRequestProcessor.java
... ... @@ -75,10 +75,6 @@ public class InviteRequestProcessor extends SIPRequestAbstractProcessor {
75 75 SipUri uri = (SipUri) address.getURI();
76 76 platformId = uri.getUser();
77 77  
78   -// if (platformId == null) { // 不存在则从fromHeader 获取平台信息
79   -// FromHeader fromHeader = (FromHeader)request.getHeader(FromHeader.NAME);
80   -// platformId = fromHeader.getName();
81   -// }
82 78 if (platformId == null || channelId == null) {
83 79 response400Ack(evt); // 参数不全, 发400,请求错误
84 80 return;
... ... @@ -92,9 +88,7 @@ public class InviteRequestProcessor extends SIPRequestAbstractProcessor {
92 88 response100Ack(evt); // 通道存在,发100,trying
93 89 }
94 90 // 解析sdp消息
95   - byte[] sdpByteArray = request.getRawContent();
96   - SdpParser sdpParser = new SdpParser(); // TODO keng
97   - SessionDescription sdp = sdpParser.parse(sdpByteArray);
  91 + SessionDescription sdp = new SdpParser().parse(request.getRawContent());
98 92 // 获取支持的格式
99 93 List<MediaDescription> mediaDescriptions = sdp.getMediaDescriptions();
100 94 // 查看是否支持PS 负载96
... ...