|
@@ -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)
|