Explorar el Código

callback event serial

DavidLiu hace 4 meses
padre
commit
cb19a44c9b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/core/callcenter/esl/client.py

+ 2 - 0
src/core/callcenter/esl/client.py

@@ -184,6 +184,7 @@ class InboundClient:
             self.cache.add_call_info(call_info)
             self.hangup_call(call_id, device_id, CallCause.CALL_TIMEOUT)
             self.dataHandleServer.update_record(call_id, status= 0)
+
     def exec_when_play_timeout(self, call_id):
         call_info = self.cache.get_call_info(call_id)
         if not call_info or not call_info.next_commands:
@@ -211,6 +212,7 @@ class InboundClient:
             next_command = NextCommand(device_id = device_id, next_type=NextType.NEXT_HANGUP.code)
             call_info.next_commands = [next_command]
             self.cache.add_call_info(call_info)
+            self.dataHandleServer.update_record(call_id, status= 0)
             self.logger.info("waitingTimeOut 开始播放结束音乐 callId:%s customerDeviceId:%s playFile:%s", call_id,
                              device_id, WaitingHangupMusicPath)