|
@@ -457,7 +457,7 @@ class CallInfo(BaseApi):
|
|
|
hangup_dir=None, sdk_hangup=0, hangup_code=None, answer_time=None, end_time=None, talk_time=None,
|
|
|
first_queue_time=None, queue_start_time=None, queue_end_time=None, overflow_count=0,
|
|
|
uuid1=None, uuid2=None, cdr_notify_url=None, queue_level=None, transfer_agent=None, bucket_type=None,
|
|
|
- user_no_answer_end_call=False, device_list=[], device_info_map: Dict[str, Any] = {}, follow_data: Dict[str, Any] = {},
|
|
|
+ user_no_answer_end_call=False, hangup_count=0, device_list=[], device_info_map: Dict[str, Any] = {}, follow_data: Dict[str, Any] = {},
|
|
|
process_data: Dict[str, Any] = {}, next_commands=[], call_details=[]):
|
|
|
self.core_uuid = core_uuid # 通话唯一标识
|
|
|
self.cti_flow_id = cti_flow_id
|
|
@@ -505,6 +505,7 @@ class CallInfo(BaseApi):
|
|
|
self.transfer_agent = transfer_agent #是否转人工
|
|
|
self.bucket_type = bucket_type #呼入流量类型
|
|
|
self.user_no_answer_end_call = user_no_answer_end_call #用户未接听挂机
|
|
|
+ self.hangup_count = hangup_count
|
|
|
self.device_list = device_list # 当前通话的设备
|
|
|
self.device_info_map = device_info_map
|
|
|
self.follow_data = follow_data # 呼叫随路数据(作为落单数据)
|
|
@@ -539,7 +540,7 @@ class CallInfo(BaseApi):
|
|
|
uuid1=data.get('uuid1'), uuid2=data.get('uuid2'), cdr_notify_url=data.get('cdr_notify_url'),
|
|
|
queue_level=data.get('queue_level'), transfer_agent=data.get('transfer_agent'),
|
|
|
bucket_type=data.get('bucket_type'), user_no_answer_end_call=data.get('user_no_answer_end_call'),
|
|
|
- device_list=data.get('device_list', []),device_info_map=device_info_map,
|
|
|
+ hangup_count=data.get('hangup_count'), device_list=data.get('device_list', []),device_info_map=device_info_map,
|
|
|
follow_data=follow_data, process_data=process_data,
|
|
|
next_commands=next_commands, call_details=call_details)
|
|
|
|
|
@@ -594,6 +595,7 @@ class CallInfo(BaseApi):
|
|
|
"transfer_agent": self.transfer_agent,
|
|
|
"bucket_type": self.bucket_type,
|
|
|
"user_no_answer_end_call": self.user_no_answer_end_call,
|
|
|
+ "hangup_count": self.hangup_count,
|
|
|
"device_list": [x for x in self.device_list],
|
|
|
"device_info_map": {key: vars(value) for key, value in self.device_info_map.items()},
|
|
|
"follow_data": {key: vars(value) for key, value in self.follow_data.items()},
|