修复点播流地址修改
parent
eac72fd06e
commit
b699158e43
|
@ -61,7 +61,7 @@ public class KeepaliveNotifyMessageHandler extends SIPRequestProcessorParent imp
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SIPRequest request = (SIPRequest) evt.getRequest();
|
SIPRequest request = (SIPRequest) evt.getRequest();
|
||||||
logger.info("[收到心跳], device: {}, callId: {}", device.getDeviceId(), request.getCallIdHeader().getCallId());
|
logger.info("[收到心跳] device: {}, callId: {}", device.getDeviceId(), request.getCallIdHeader().getCallId());
|
||||||
|
|
||||||
// 回复200 OK
|
// 回复200 OK
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -264,11 +264,13 @@ public class ZLMHttpHookListener {
|
||||||
|
|
||||||
// 国标流
|
// 国标流
|
||||||
if ("rtp".equals(param.getApp()) ) {
|
if ("rtp".equals(param.getApp()) ) {
|
||||||
String ssrc = String.format("%010d", Long.parseLong(param.getStream(), 16));
|
|
||||||
InviteInfo inviteInfo = inviteStreamService.getInviteInfoBySSRC(ssrc);
|
InviteInfo inviteInfo = inviteStreamService.getInviteInfoByStream(null, param.getStream());
|
||||||
|
|
||||||
// 单端口模式下修改流 ID
|
// 单端口模式下修改流 ID
|
||||||
if (!mediaInfo.isRtpEnable() && inviteInfo != null) {
|
if (!mediaInfo.isRtpEnable() && inviteInfo == null) {
|
||||||
|
String ssrc = String.format("%010d", Long.parseLong(param.getStream(), 16));
|
||||||
|
inviteInfo = inviteStreamService.getInviteInfoBySSRC(ssrc);
|
||||||
result.setStream_replace(inviteInfo.getStream());
|
result.setStream_replace(inviteInfo.getStream());
|
||||||
logger.info("[ZLM HOOK]推流鉴权 stream: {} 替换为 {}", param.getStream(), inviteInfo.getStream());
|
logger.info("[ZLM HOOK]推流鉴权 stream: {} 替换为 {}", param.getStream(), inviteInfo.getStream());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue