|
@@ -109,7 +109,6 @@ class AgentEventService:
|
|
|
|
|
|
#应答
|
|
#应答
|
|
if CHANNEL_ANSWER == event_name:
|
|
if CHANNEL_ANSWER == event_name:
|
|
- self.logger.info('agent_event_channel, event_name=%s, call_id=%s, device_id=%s, is_agent=%s', event_name, call_id, device_id, is_agent)
|
|
|
|
if call_id:
|
|
if call_id:
|
|
if self.cache.get_call_is_end(call_id):
|
|
if self.cache.get_call_is_end(call_id):
|
|
# self.logger.warn("event service channel call is end {} {} {} {} {} {}", saas_id, event_name, caller, called, call_id, json.dumps(event.serialize('json')))
|
|
# self.logger.warn("event service channel call is end {} {} {} {} {} {}", saas_id, event_name, caller, called, call_id, json.dumps(event.serialize('json')))
|
|
@@ -149,6 +148,7 @@ class AgentEventService:
|
|
# agentProducer.pushDelayedStatus(statusDto, reprocessingTimeout);
|
|
# agentProducer.pushDelayedStatus(statusDto, reprocessingTimeout);
|
|
|
|
|
|
if (CHANNEL_BRIDGE == event_name or PLAYBACK_START == event_name) and is_agent:
|
|
if (CHANNEL_BRIDGE == event_name or PLAYBACK_START == event_name) and is_agent:
|
|
|
|
+ self.logger.info('agent_event_channel, event_name=%s, call_id=%s, device_id=%s, is_agent=%s', event_name, call_id, device_id, is_agent)
|
|
self.push_handler.push_on_ring_start(saas_id, flow_id, agent_num, AgentScene.MANUAL, call_id)
|
|
self.push_handler.push_on_ring_start(saas_id, flow_id, agent_num, AgentScene.MANUAL, call_id)
|
|
self.push_handler.push_on_agent_work_report(saas_id, flow_id, agent_num, call_id, AgentScene.MANUAL, WorkStatus.AGENT_ANSWER_OUTGOING)
|
|
self.push_handler.push_on_agent_work_report(saas_id, flow_id, agent_num, call_id, AgentScene.MANUAL, WorkStatus.AGENT_ANSWER_OUTGOING)
|
|
self.push_handler.push_on_agent_report(saas_id, agent_num, AgentScene.MANUAL, AgentServiceState.CALLING)
|
|
self.push_handler.push_on_agent_report(saas_id, agent_num, AgentScene.MANUAL, AgentServiceState.CALLING)
|