|
@@ -19,6 +19,7 @@ class ChannelOriginateHandler(EslEventHandler):
|
|
device_id = EslEventUtil.getDeviceId(event)
|
|
device_id = EslEventUtil.getDeviceId(event)
|
|
call = self.cache.get_call_info(call_id)
|
|
call = self.cache.get_call_info(call_id)
|
|
device = call.device_info_map.get(device_id)
|
|
device = call.device_info_map.get(device_id)
|
|
|
|
+ print('ceshisdsdsdsdsdsdsd',device.device_type,DeviceType.AGENT.code,flush=True)
|
|
self.logger.info('ChannelOriginateHandler::event %s, device.device_type: %s, DeviceType.AGENT.code:%s ', event,device.device_type, DeviceType.AGENT.code)
|
|
self.logger.info('ChannelOriginateHandler::event %s, device.device_type: %s, DeviceType.AGENT.code:%s ', event,device.device_type, DeviceType.AGENT.code)
|
|
if device.device_type == DeviceType.AGENT.code: # 如果是坐席接听 变更坐席状态
|
|
if device.device_type == DeviceType.AGENT.code: # 如果是坐席接听 变更坐席状态
|
|
self.push_handler.push_on_agent_work_report(call.saas_id, call.cti_flow_id,call.agent_key,call.call_id,AgentScene.ROBOT, WorkStatus.AGENT_RINGING)
|
|
self.push_handler.push_on_agent_work_report(call.saas_id, call.cti_flow_id,call.agent_key,call.call_id,AgentScene.ROBOT, WorkStatus.AGENT_RINGING)
|