Commit ede2c5005d405ca4cafebb2353dece537b7e68a7
Committed by
GitHub
Merge pull request #817 from xu-bin-bin/wvp-28181-2.0
处理上级平台发送的invite请求不携带“y=”sdp信息时,并且设备已经在当前平台中点播了。给上级平台回复的ssrc使用默认“y=000…
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 | 482 | redisCatchStorage.deleteSendRTPServer(platform.getServerGBId(), channelId, callIdHeader.getCallId(), null); |
| 483 | 483 | }); |
| 484 | 484 | } else { |
| 485 | + // 当前系统作为下级平台使用,当上级平台点播时不携带ssrc时,并且设备在当前系统中已经点播了。这个时候需要重新给生成一个ssrc,不使用默认的"0000000000"。 | |
| 486 | + if (ssrc.equals(ssrcDefault)) { | |
| 487 | + ssrc = ssrcFactory.getPlaySsrc(mediaServerItem.getId()); | |
| 488 | + sendRtpItem.setSsrc(ssrc); | |
| 489 | + } | |
| 490 | + | |
| 485 | 491 | sendRtpItem.setStreamId(playTransaction.getStream()); |
| 486 | 492 | // 写入redis, 超时时回复 |
| 487 | 493 | redisCatchStorage.updateSendRTPSever(sendRtpItem); | ... | ... |