774056846 4 ماه پیش
والد
کامیت
a00a2d7c17
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/core/callcenter/call.py

+ 2 - 2
src/core/callcenter/call.py

@@ -89,7 +89,7 @@ class CallService:
                             call_time=now, cdr_type=CdrType.TRANSFER.code, device_type=DeviceType.AGENT.code)
         call_info.device_list.append(device_id)
 
-        call_info.caller = agent_number
+        # call_info.caller = agent_number
         call_info.device_info_map[device_id] = device_info
         call_info.next_commands.append(NextCommand(device_info.device_id, NextType.NEXT_TRANSFER_CALL.code, call_info.device_list[0]))
         call_info.agent_key = agent_number
@@ -99,7 +99,7 @@ class CallService:
         self.cache.add_agent_info(agent=agent, call_id=call_id, device_id=device_id)
 
         sip_header_map = {sipHeaderServiceId: service_id}
-        context = MakeCallContext(display=call_info.called, caller=call_info.called, called=agent_number,
+        context = MakeCallContext(display=call_info.caller, caller=call_info.caller, called=agent_number,
                                   call_id=call_id, device_id=device_id, device_type=device_info.device_type,sip_server=agent.sip_server,
                                   call_type=call_info.call_type, service_id=service_id, sip_header_map=sip_header_map)
         self.client.make_call_new(context)