DavidLiu vor 4 Monaten
Ursprung
Commit
3a68683fb1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/core/callcenter/esl/handler/channel_answer_handler.py

+ 1 - 1
src/core/callcenter/esl/handler/channel_answer_handler.py

@@ -168,7 +168,7 @@ class ChannelAnswerHandler(EslEventHandler):
                 _record_url = self.start_recording(device_id, get_record_file_name(call_id, CallStage.ALL), call)
             elif DeviceType.ROBOT.code == device.device_type:
                 _record_url = self.start_recording(device_id, get_record_file_name(call_id, CallStage.ROBOT), call)
-            elif DeviceType.AGENT.code == call.call_type:
+            elif DeviceType.AGENT.code == device.device_type:
                 _record_url = self.start_recording(device_id, get_record_file_name(call_id, CallStage.AGENT), call)
         else:
             _record_url = self.start_recording(device_id, get_record_file_name(call_id, CallStage.ALL), call)