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

pull/46/head
panlinlin 2021-01-15 17:47:58 +08:00
parent 503f891c9e
commit e09e541c82
1 changed files with 1 additions and 7 deletions

View File

@ -75,10 +75,6 @@ public class InviteRequestProcessor extends SIPRequestAbstractProcessor {
SipUri uri = (SipUri) address.getURI(); SipUri uri = (SipUri) address.getURI();
platformId = uri.getUser(); platformId = uri.getUser();
// if (platformId == null) { // 不存在则从fromHeader 获取平台信息
// FromHeader fromHeader = (FromHeader)request.getHeader(FromHeader.NAME);
// platformId = fromHeader.getName();
// }
if (platformId == null || channelId == null) { if (platformId == null || channelId == null) {
response400Ack(evt); // 参数不全, 发400请求错误 response400Ack(evt); // 参数不全, 发400请求错误
return; return;
@ -92,9 +88,7 @@ public class InviteRequestProcessor extends SIPRequestAbstractProcessor {
response100Ack(evt); // 通道存在发100trying response100Ack(evt); // 通道存在发100trying
} }
// 解析sdp消息 // 解析sdp消息
byte[] sdpByteArray = request.getRawContent(); SessionDescription sdp = new SdpParser().parse(request.getRawContent());
SdpParser sdpParser = new SdpParser(); // TODO keng
SessionDescription sdp = sdpParser.parse(sdpByteArray);
// 获取支持的格式 // 获取支持的格式
List<MediaDescription> mediaDescriptions = sdp.getMediaDescriptions(); List<MediaDescription> mediaDescriptions = sdp.getMediaDescriptions();
// 查看是否支持PS 负载96 // 查看是否支持PS 负载96