648540858
2022-09-29 06bbe3fe01e5af9486c309693a975077df813f7c
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/response/cmd/BroadcastResponseMessageHandler.java
@@ -52,18 +52,19 @@
    public void handForDevice(RequestEvent evt, Device device, Element rootElement) {
        try {
            String channelId = getText(rootElement, "DeviceID");
            ServerTransaction serverTransaction = getServerTransaction(evt);
            if (!audioBroadcastManager.exit(device.getDeviceId(), channelId)) {
                // 回复410
                responseAck(evt, Response.GONE);
                responseAck(serverTransaction, Response.GONE);
                return;
            }
            logger.info("收到语音广播的回复:{}/{}", device.getDeviceId(), channelId );
            AudioBroadcastCatch audioBroadcastCatch = audioBroadcastManager.get(device.getDeviceId(), channelId);
            audioBroadcastCatch.setStatus(AudioBroadcastCatchStatus.WaiteInvite);
            audioBroadcastManager.update(audioBroadcastCatch);
            responseAck(evt, Response.OK);
            responseAck(serverTransaction, Response.OK);
        } catch (ParseException | SipException | InvalidArgumentException e) {
            e.printStackTrace();
            logger.error("[命令发送失败] 国标级联 语音喊话: {}", e.getMessage());
        }
    }