Procházet zdrojové kódy

Merge branch 'dev_20241205' of ssh://gitlab.fuxicarbon.com:1111/client_service/voice-gateway-service into dev_20241205

余尚辉 před 4 měsíci
rodič
revize
4c21974a37

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

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