|
@@ -39,6 +39,7 @@ class CallService:
|
|
|
device_info = DeviceInfo(cti_flow_id=request.cti_flow_id, device_id=device_id, call_time=now, call_id=call_id, device_type=DeviceType.AGENT.code,
|
|
|
agent_key=agent.agent_number, caller_display=route_gateway.name, cdr_type=CdrType.INBOUND.code)
|
|
|
call_info.device_list.append(device_id)
|
|
|
+ self.logger.info("liuwei::debugger:1111::call_id=%s, device_id=%s"%(call_id, device_id))
|
|
|
call_info.next_commands.append(NextCommand(device_id, NextType.NEXT_CALL_OTHER.code))
|
|
|
call_info.device_info_map = {device_id: device_info}
|
|
|
self.cache.add_call_info(call_info)
|
|
@@ -90,6 +91,7 @@ class CallService:
|
|
|
device_info = DeviceInfo(device_id=device_id, caller=caller, display=caller, called=agent_number, call_id=call_id,
|
|
|
call_time=now, cdr_type=CdrType.TRANSFER.code, device_type=DeviceType.AGENT.code)
|
|
|
call_info.device_list.append(device_id)
|
|
|
+ self.logger.info("liuwei::debugger:2222::call_id=%s, device_id=%s" % (call_id, device_id))
|
|
|
|
|
|
# call_info.caller = agent_number
|
|
|
call_info.device_info_map[device_id] = device_info
|