|
@@ -33,7 +33,8 @@ class ChannelAnswerHandler(EslEventHandler):
|
|
|
if CallType.AGENT_CALL.code == call_info.call_type and device_info.device_type == DeviceType.CUSTOMER.code:
|
|
|
self.record(event, device_id)
|
|
|
|
|
|
- if CallType.BOT_CALL.code == call_info.call_type:
|
|
|
+ if CallType.BOT_CALL.code == call_info.call_type and device_info.device_type == DeviceType.ROBOT.code:
|
|
|
+ self.record(event, device_id)
|
|
|
call_info.answer_flag = AnswerFlag.ROBOT_ANSWER.code
|
|
|
registry.CALL_BOT_ANSWER_REQUESTS.labels(f"{call_info.bucket_type}").inc()
|
|
|
|