国标级联 修复 多级级联时找不到 级联的 设备 和 通道 问题

This commit is contained in:
zxb 2023-09-21 23:01:49 +08:00
parent 279d789c12
commit b092035af1
2 changed files with 10 additions and 7 deletions

View File

@ -312,7 +312,9 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
if (channel != null) { if (channel != null) {
device = storager.queryVideoDeviceByPlatformIdAndChannelId(requesterId, channelId); device = storager.queryVideoDeviceByPlatformIdAndChannelId(requesterId, channelId);
if (device == null) { if (device == null) {
logger.warn("点播平台{}的通道{}时未找到设备信息", requesterId, channel); device = storager.queryDeviceInfoByPlatformIdAndChannelId(requesterId, channelId);
if (device == null) {
logger.warn("点播平台{}的通道{}时未找到设备信息", requesterId, channelId);
try { try {
responseAck(request, Response.SERVER_INTERNAL_ERROR); responseAck(request, Response.SERVER_INTERNAL_ERROR);
} catch (SipException | InvalidArgumentException | ParseException e) { } catch (SipException | InvalidArgumentException | ParseException e) {
@ -320,6 +322,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
} }
return; return;
} }
}
mediaServerItem = playService.getNewMediaServerItem(device); mediaServerItem = playService.getNewMediaServerItem(device);
if (mediaServerItem == null) { if (mediaServerItem == null) {
logger.warn("未找到可用的zlm"); logger.warn("未找到可用的zlm");

View File

@ -108,7 +108,7 @@ public interface PlatformChannelMapper {
"</script>") "</script>")
int delChannelForGBByCatalogId(String platformId, String catalogId); int delChannelForGBByCatalogId(String platformId, String catalogId);
@Select("select dc.channel_id dc.device_id,dc.name,d.manufacturer,d.model,d.firmware\n" + @Select("select dc.channel_id,dc.device_id,dc.name,d.manufacturer,d.model,d.firmware\n" +
"from wvp_platform_gb_channel pgc\n" + "from wvp_platform_gb_channel pgc\n" +
" left join wvp_device_channel dc on dc.id = pgc.device_channel_id\n" + " left join wvp_device_channel dc on dc.id = pgc.device_channel_id\n" +
" left join wvp_device d on dc.device_id = d.device_id\n" + " left join wvp_device d on dc.device_id = d.device_id\n" +