兼容ssrc为0的情况
parent
9828063bb0
commit
2ce50bdd0a
|
@ -17,6 +17,7 @@ import com.genersoft.iot.vmp.gb28181.transmit.callback.DeferredResultHolder;
|
|||
import com.genersoft.iot.vmp.gb28181.transmit.callback.RequestMessage;
|
||||
import com.genersoft.iot.vmp.gb28181.transmit.cmd.impl.SIPCommander;
|
||||
import com.genersoft.iot.vmp.gb28181.transmit.cmd.impl.SIPCommanderFroPlatform;
|
||||
import com.genersoft.iot.vmp.gb28181.utils.NumericUtil;
|
||||
import com.genersoft.iot.vmp.media.zlm.AssistRESTfulUtils;
|
||||
import com.genersoft.iot.vmp.media.zlm.ZLMRESTfulUtils;
|
||||
import com.genersoft.iot.vmp.media.zlm.ZlmHttpHookSubscribe;
|
||||
|
@ -583,6 +584,14 @@ public class PlayServiceImpl implements IPlayService {
|
|||
if (ssrcInfo.getSsrc().equals(ssrcInResponse)) {
|
||||
return;
|
||||
}
|
||||
if (ObjectUtils.isEmpty(ssrcInResponse)) {
|
||||
logger.warn("[回放消息] 收到invite 200, 发现下级自定义了ssrc为空,按照上级ssrc处理");
|
||||
return;
|
||||
}
|
||||
if (NumericUtil.isInteger(ssrcInResponse) && Integer.parseInt(ssrcInResponse) == 0) {
|
||||
logger.warn("[回放消息] 收到invite 200, 发现下级自定义了ssrc为0,按照上级ssrc处理");
|
||||
return;
|
||||
}
|
||||
logger.info("[回放消息] 收到invite 200, 发现下级自定义了ssrc: {}", ssrcInResponse);
|
||||
if (!mediaServerItem.isRtpEnable() || device.isSsrcCheck()) {
|
||||
logger.info("[回放消息] SSRC修正 {}->{}", ssrcInfo.getSsrc(), ssrcInResponse);
|
||||
|
|
Loading…
Reference in New Issue