|
@@ -105,13 +105,14 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
# 一般情况下,挂断其他所有设备
|
|
|
if device.cdr_type <= 4 and not call.end_time:
|
|
|
call.end_time = device.end_time
|
|
|
- self.inbound_client.hangup_call(call_id, device_id, CallCause.HANGUP_EVENT)
|
|
|
+ self.call_service.hangup_all(call, CallCause.HANGUP_EVENT)
|
|
|
+ # self.inbound_client.hangup_call(call_id, device_id, CallCause.HANGUP_EVENT)
|
|
|
|
|
|
# 判断挂机方向 && 更新缓存
|
|
|
self.hangup_dir(call, device, cause)
|
|
|
self.cache.add_call_info(call)
|
|
|
|
|
|
- if len(call.device_list)==0 and device.device_type == DeviceType.AGENT.code:
|
|
|
+ if device.device_type == DeviceType.AGENT.code:
|
|
|
self.dataHandleServer.update_agent_monitor_service_state(device_id, AgentServiceState.IDLE.code)
|
|
|
self.push_handler.push_on_call_end(call.cti_flow_id,call.agent_key,AgentScene.ROBOT,call.direction, device.device_type)
|
|
|
except:
|