mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-26 23:17:50 +08:00
Compare commits
3 Commits
e830c784a9
...
5bc88cf842
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bc88cf842 | ||
|
|
201cec7651 | ||
|
|
c543840830 |
@ -143,7 +143,7 @@ public class SIPSender {
|
|||||||
|
|
||||||
public CallIdHeader getNewCallIdHeader(String ip, String transport) {
|
public CallIdHeader getNewCallIdHeader(String ip, String transport) {
|
||||||
if (ObjectUtils.isEmpty(transport)) {
|
if (ObjectUtils.isEmpty(transport)) {
|
||||||
return sipLayer.getUdpSipProvider().getNewCallId();
|
return sipLayer.getUdpSipProvider() != null ? sipLayer.getUdpSipProvider().getNewCallId() : sipLayer.getTcpSipProvider().getNewCallId();
|
||||||
}
|
}
|
||||||
SipProviderImpl sipProvider;
|
SipProviderImpl sipProvider;
|
||||||
if (ObjectUtils.isEmpty(ip)) {
|
if (ObjectUtils.isEmpty(ip)) {
|
||||||
@ -155,7 +155,8 @@ public class SIPSender {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sipProvider == null) {
|
if (sipProvider == null) {
|
||||||
sipProvider = sipLayer.getUdpSipProvider();
|
sipProvider = transport.equalsIgnoreCase("TCP") ? sipLayer.getTcpSipProvider()
|
||||||
|
: sipLayer.getUdpSipProvider();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sipProvider != null) {
|
if (sipProvider != null) {
|
||||||
|
|||||||
@ -217,7 +217,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
|||||||
if (sendRtpItem.isTcpActive()) {
|
if (sendRtpItem.isTcpActive()) {
|
||||||
MediaServer mediaServer = mediaServerService.getOne(sendRtpItem.getMediaServerId());
|
MediaServer mediaServer = mediaServerService.getOne(sendRtpItem.getMediaServerId());
|
||||||
try {
|
try {
|
||||||
mediaServerService.startSendRtpPassive(mediaServer, sendRtpItem, 5);
|
mediaServerService.startSendRtpPassive(mediaServer, sendRtpItem, 5*1000);
|
||||||
DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(sendRtpItem.getChannelId());
|
DeviceChannel deviceChannel = deviceChannelService.getOneForSourceById(sendRtpItem.getChannelId());
|
||||||
if (deviceChannel != null) {
|
if (deviceChannel != null) {
|
||||||
redisCatchStorage.sendPlatformStartPlayMsg(sendRtpItem, deviceChannel, platform);
|
redisCatchStorage.sendPlatformStartPlayMsg(sendRtpItem, deviceChannel, platform);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user