|
@@ -169,11 +169,11 @@ class InboundClient:
|
|
|
if device_info.device_type.code == DeviceType.CUSTOMER.code:
|
|
|
call_info.user_no_answer_end_call = True
|
|
|
|
|
|
- if not device_info.end_time and device_info.device_type.code == DeviceType.CUSTOMER.code:
|
|
|
- channel = self.show_channel(device_id)
|
|
|
- if channel:
|
|
|
- delay_action = DelayAction(call_id=call_id, device_id=device_id)
|
|
|
- self.cache.add_delay_message(DelayActionEnum.CALL_TIMEOUT_DECR, delay_action, timeouts=20)
|
|
|
+ # if not device_info.end_time and device_info.device_type.code == DeviceType.CUSTOMER.code:
|
|
|
+ # channel = self.show_channel(device_id)
|
|
|
+ # if channel:
|
|
|
+ # delay_action = DelayAction(call_id=call_id, device_id=device_id)
|
|
|
+ # self.cache.add_delay_message(DelayActionEnum.CALL_TIMEOUT_DECR, delay_action, timeouts=20)
|
|
|
self.cache.add_call_info(call_info)
|
|
|
self.hangup_call(call_id, device_id, CallCause.CALL_TIMEOUT)
|
|
|
print("人工外呼,呼叫超时,用户未接通会走这", flush=True)
|
|
@@ -215,7 +215,7 @@ class InboundClient:
|
|
|
builder = [
|
|
|
'{', context.get_sip_header(), '}'
|
|
|
]
|
|
|
-
|
|
|
+ self.call_timeout(context.call_id, context.device_id, context.timeout)
|
|
|
if context.device_type == DeviceType.CUSTOMER.code:
|
|
|
profile = self.expression(profile1, params)
|
|
|
builder.append(f"{SOFIA}{SK}{profile}{SK}{called}{PARK}")
|