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格式错误"); |
| | | } |
| | |
| | | String is_Udp = isUdp ? "1" : "0"; |
| | | paramForAudio.put("is_udp", is_Udp); |
| | | paramForAudio.put("src_port", sendInfo.getSendLocalPortForAudio()); |
| | | paramForAudio.put("use_ps", "0"); |
| | | paramForAudio.put("only_audio", "1"); |
| | | if (ptForAudio != null) { |
| | | paramForAudio.put("pt", ptForAudio); |
| | |
| | | String is_Udp = isUdp ? "1" : "0"; |
| | | paramForVideo.put("is_udp", is_Udp); |
| | | paramForVideo.put("src_port", sendInfo.getSendLocalPortForVideo()); |
| | | paramForVideo.put("use_ps", "0"); |
| | | paramForVideo.put("only_audio", "0"); |
| | | if (ptForVideo != null) { |
| | | paramForVideo.put("pt", ptForVideo); |