old mode 100644
new mode 100755
| | |
| | | if (isSend != null && isSend && callId == null) { |
| | | throw new ControllerException(ErrorCode.ERROR100.getCode(),"isSend为true时,CallID不能为空"); |
| | | } |
| | | int ssrcInt = 0; |
| | | long ssrcInt = 0; |
| | | if (ssrc != null) { |
| | | try { |
| | | ssrcInt = Integer.parseInt(ssrc); |
| | | ssrcInt = Long.parseLong(ssrc); |
| | | }catch (NumberFormatException e) { |
| | | throw new ControllerException(ErrorCode.ERROR100.getCode(),"ssrc格式错误"); |
| | | } |
| | |
| | | redisTemplate.opsForValue().set(receiveKey, otherRtpSendInfo); |
| | | if (isSend != null && isSend) { |
| | | // 预创建发流信息 |
| | | int portForVideo = sendRtpPortManager.getNextPort(mediaServerItem.getId()); |
| | | int portForAudio = sendRtpPortManager.getNextPort(mediaServerItem.getId()); |
| | | int portForVideo = sendRtpPortManager.getNextPort(mediaServerItem); |
| | | int portForAudio = sendRtpPortManager.getNextPort(mediaServerItem); |
| | | |
| | | otherRtpSendInfo.setSendLocalIp(mediaServerItem.getSdpIp()); |
| | | otherRtpSendInfo.setSendLocalPortForVideo(portForVideo); |