Commit 88779b983ec38b6206eed03c9f9213c0db8d913b
1 parent
15f718bd
处理上级平台发送的invite请求不携带“y=”sdp信息时,并且设备已经在当前平台中点播了。给上级平台回复的ssrc使用默认“y=0000000000”,上级平台无法播放视频的问题
Showing
1 changed file
with
6 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/InviteRequestProcessor.java
| @@ -482,6 +482,12 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements | @@ -482,6 +482,12 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements | ||
| 482 | redisCatchStorage.deleteSendRTPServer(platform.getServerGBId(), channelId, callIdHeader.getCallId(), null); | 482 | redisCatchStorage.deleteSendRTPServer(platform.getServerGBId(), channelId, callIdHeader.getCallId(), null); |
| 483 | }); | 483 | }); |
| 484 | } else { | 484 | } else { |
| 485 | + // 当前系统作为下级平台使用,当上级平台点播时不携带ssrc时,并且设备在当前系统中已经点播了。这个时候需要重新给生成一个ssrc,不使用默认的"0000000000"。 | ||
| 486 | + if (ssrc.equals(ssrcDefault)) { | ||
| 487 | + ssrc = ssrcFactory.getPlaySsrc(mediaServerItem.getId()); | ||
| 488 | + sendRtpItem.setSsrc(ssrc); | ||
| 489 | + } | ||
| 490 | + | ||
| 485 | sendRtpItem.setStreamId(playTransaction.getStream()); | 491 | sendRtpItem.setStreamId(playTransaction.getStream()); |
| 486 | // 写入redis, 超时时回复 | 492 | // 写入redis, 超时时回复 |
| 487 | redisCatchStorage.updateSendRTPSever(sendRtpItem); | 493 | redisCatchStorage.updateSendRTPSever(sendRtpItem); |