|
@@ -36,7 +36,6 @@ class AcdService:
|
|
|
if not call_info:
|
|
|
return
|
|
|
call_info.answer_flag = AnswerFlag.TRANSFER_TO_AGENT.code
|
|
|
- self.cache.add_call_info(call_info)
|
|
|
# 1. hold住并且播放等待音
|
|
|
self.call_service.hold(call_info, device_id)
|
|
|
self.wait_timeout(call_id)
|
|
@@ -55,6 +54,7 @@ class AcdService:
|
|
|
self.logger.info("AcdService transferToAgent agentNumber not empty %s, serviceId:%s,called:%s,callId:%s"%(
|
|
|
agent_number, service_id, call_info.called, call_info.call_id))
|
|
|
self.call_service.transfer(call_info, agent_number, service_id)
|
|
|
+ self.cache.add_call_info(call_info)
|
|
|
|
|
|
def try_transfer_agent(self):
|
|
|
# self.logger.info("AcdService tryTransferAgent start")
|