xujunwei 1 年間 前
コミット
fddb1da87d

+ 4 - 0
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java

@@ -865,15 +865,19 @@ public class PlayServiceImpl implements IPlayService {
                                  InviteInfo inviteInfo, InviteSessionType inviteSessionType){
         inviteInfo.setStatus(InviteSessionStatus.ok);
         ResponseEvent responseEvent = (ResponseEvent) eventResult.event;
+        logger.info("xjw 11 {}",JSONUtil.toJsonStr(responseEvent));
         String contentString = new String(responseEvent.getResponse().getRawContent());
         String ssrcInResponse = SipUtils.getSsrcFromSdp(contentString);
+        logger.info("xjw 12 {}",ssrcInResponse);
         // 兼容回复的消息中缺少ssrc(y字段)的情况
         if (ssrcInResponse == null) {
             ssrcInResponse = ssrcInfo.getSsrc();
         }
         if (ssrcInfo.getSsrc().equals(ssrcInResponse)) {
+            logger.info("xjw 13 {}",mediaServerItem);
             // ssrc 一致
             if (mediaServerItem.isRtpEnable()) {
+                logger.info("xjw 14 {}",device);
                 // 多端口
                 if (device.getStreamMode().equalsIgnoreCase("TCP-ACTIVE")) {
                     tcpActiveHandler(device, channelId, contentString, mediaServerItem, timeOutTaskKey, ssrcInfo, callback);