修复当上级平台点播时,上级平台和下级平台局域网不通时,导致推流失败。推流目标IP地址改为配置的SDP发流IP,如果SDP发流IP存在的话。否则还是从连接中获取推流目标IP

pull/1450/head
BradyXu 2024-05-12 02:15:41 +08:00
parent a8c424e49d
commit 72b437cc52
1 changed files with 6 additions and 2 deletions

View File

@ -335,8 +335,12 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
return;
}
String username = sdp.getOrigin().getUsername();
String addressStr = sdp.getConnection().getAddress();
String addressStr;
if(StringUtils.isEmpty(platform.getSendStreamIp())){
addressStr = sdp.getConnection().getAddress();
}else {
addressStr = platform.getSendStreamIp();
}
Device device = null;
// 通过 channel 和 gbStream 是否为null 值判断来源是直播流合适国标