| | |
| | | });
|
| | |
|
| | | if ("rtsp".equals(param.getSchema())){
|
| | | logger.info("on_stream_changed:注册->{}, app->{}, stream->{}", param.isRegist(), param.getApp(), param.getStream());
|
| | | logger.info("流变化:注册->{}, app->{}, stream->{}", param.isRegist(), param.getApp(), param.getStream());
|
| | | if (param.isRegist()) {
|
| | | mediaServerService.addCount(param.getMediaServerId());
|
| | | }else {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | }else {
|
| | | logger.info("[语音对讲] 未找到通道:{}", channelId);
|
| | | }
|
| | | }else{
|
| | | logger.info("[语音对讲] 未找到设备:{}", deviceId);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | if (platform != null) {
|
| | | commanderFroPlatform.streamByeCmd(platform, sendRtpItem);
|
| | | }else {
|
| | | if ("talk".equals(param.getApp()) && sendRtpItem.isOnlyAudio()) {
|
| | | if (sendRtpItem.isOnlyAudio()) {
|
| | | AudioBroadcastCatch audioBroadcastCatch = audioBroadcastManager.get(sendRtpItem.getDeviceId(), sendRtpItem.getChannelId());
|
| | | if (device != null && audioBroadcastCatch != null) {
|
| | | // cmder.streamByeCmd(device, sendRtpItem.getChannelId(), audioBroadcastCatch.getSipTransactionInfo(), null);
|
| | | if (audioBroadcastCatch != null) {
|
| | | // playService.stopAudioBroadcast(device.getDeviceId(), sendRtpItem.getChannelId());
|
| | | if ("talk".equals(param.getApp())) {
|
| | | // cmder.streamByeCmd(device, sendRtpItem.getChannelId(), audioBroadcastCatch.getSipTransactionInfo(), null);
|
| | | }else {
|
| | | // cmder.streamByeCmd(device, sendRtpItem.getChannelId(), audioBroadcastCatch.getSipTransactionInfo(), null);
|
| | | }
|
| | | }
|
| | | }else {
|
| | | cmder.streamByeCmd(device, null, null, sendRtpItem.getCallId());
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | }
|
| | | } catch (SipException | InvalidArgumentException | ParseException | SsrcTransactionNotFoundException e) {
|
| | | } catch (SipException | InvalidArgumentException | ParseException e) {
|
| | | logger.error("[命令发送失败] 国标级联 发送BYE: {}", e.getMessage());
|
| | | }
|
| | | }
|