|
@@ -163,6 +163,7 @@ class InboundClient:
|
|
|
def exec_when_call_timeout(self, call_id, device_id):
|
|
|
call_info = self.cache.get_call_info(call_id)
|
|
|
if not call_info or not (device_id in call_info.device_list):
|
|
|
+ self.logger.info("do_delay_action:exec_when_call_timeout:return, device_id=%s, call_info=%s", device_id, call_info)
|
|
|
return
|
|
|
device_info = call_info.device_info_map.get(device_id)
|
|
|
if device_info and device_info.answer_time is None:
|
|
@@ -202,12 +203,14 @@ class InboundClient:
|
|
|
self.logger.info("exec_when_acd_timeout callInfo为空 callId: %s", call_id)
|
|
|
return
|
|
|
device_list = [v for k,v in call_info.device_info_map.items() if v.device_type == DeviceType.CUSTOMER]
|
|
|
+ self.logger.info("do_delay_action:exec_when_acd_timeout:device_list=%s, call_info=%s", device_list, call_info)
|
|
|
if device_list and len(device_list) == 1:
|
|
|
device_id = device_list[0].device_id
|
|
|
self.break0(device_id)
|
|
|
# if not WaitingHangupMusicPath:
|
|
|
# self.hangup_call(call_id, device_id, CallCause.WAITING_TIMEOUT)
|
|
|
# return
|
|
|
+
|
|
|
self.hold_play(device_id, WaitingHangupMusicPath)
|
|
|
self.play_timeout(call_id, timeout=30)
|
|
|
next_command = NextCommand(device_id = device_id, next_type=NextType.NEXT_HANGUP.code)
|