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