修复导入通道时无平台关联时的bug
parent
a45bb7d9df
commit
41616f726d
|
@ -563,6 +563,9 @@ public class SIPCommanderFroPlatform implements ISIPCommanderForPlatform {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void streamByeCmd(ParentPlatform platform, String callId) {
|
public void streamByeCmd(ParentPlatform platform, String callId) {
|
||||||
|
if (platform == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
SendRtpItem sendRtpItem = redisCatchStorage.querySendRTPServer(platform.getServerGBId(), null, null, callId);
|
SendRtpItem sendRtpItem = redisCatchStorage.querySendRTPServer(platform.getServerGBId(), null, null, callId);
|
||||||
if (sendRtpItem != null) {
|
if (sendRtpItem != null) {
|
||||||
String mediaServerId = sendRtpItem.getMediaServerId();
|
String mediaServerId = sendRtpItem.getMediaServerId();
|
||||||
|
|
|
@ -413,12 +413,15 @@ public class StreamPushServiceImpl implements IStreamPushService {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
platformGbStreamMapper.batchAdd(streamPushItemListFroPlatform);
|
if (streamPushItemListFroPlatform.size() > 0) {
|
||||||
// 发送通知
|
platformGbStreamMapper.batchAdd(streamPushItemListFroPlatform);
|
||||||
for (String platformId : platformForEvent.keySet()) {
|
// 发送通知
|
||||||
eventPublisher.catalogEventPublishForStream(
|
for (String platformId : platformForEvent.keySet()) {
|
||||||
platformId, platformForEvent.get(platformId), CatalogEvent.ADD);
|
eventPublisher.catalogEventPublishForStream(
|
||||||
|
platformId, platformForEvent.get(platformId), CatalogEvent.ADD);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue