|
@@ -45,13 +45,13 @@ class AcdService:
|
|
|
agent_number = self.agent_service.assign(AgentActionRequest(saas_id=SAAS_ID, service_id=service_id))
|
|
|
if not agent_number:
|
|
|
# 如果没有空闲坐席,播放等待音
|
|
|
- text = "AcdService transferToAgent agentNumber is empty serviceId:%s,called:%s,callId:%s"%(service_id, call_info.called, call_info.call_id)
|
|
|
+ text = "AcdService transferToAgent agentNumber is empty serviceId:%s,caller:%s,called:%s,callId:%s"%(service_id, call_info.caller, call_info.called, call_info.call_id)
|
|
|
# print(text, flush=True)
|
|
|
self.logger.info(text)
|
|
|
self.add_acd_queue(call_info, service_id)
|
|
|
else:
|
|
|
# 有空闲坐席,直接转接
|
|
|
- text = "AcdService transferToAgent agentNumber not empty %s, serviceId:%s,called:%s,callId:%s"%(agent_number, service_id, call_info.called, call_info.call_id)
|
|
|
+ text = "AcdService transferToAgent agentNumber not empty %s, serviceId:%s,caller:%s,called:%s,callId:%s"%(agent_number, service_id, call_info.caller,call_info.called, call_info.call_id)
|
|
|
# print(text, flush=True)
|
|
|
self.logger.info(text)
|
|
|
self.call_service.transfer(call_info, agent_number, service_id)
|