|
@@ -104,7 +104,7 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
# return
|
|
|
# 一般情况下,挂断其他所有设备
|
|
|
if device_info.cdr_type <= 4 and not call_info.end_time and not skip_hangup_all:
|
|
|
- # call_info.end_time = device_info.end_time
|
|
|
+ call_info.end_time = device_info.end_time
|
|
|
self.logger.info("liuwei::debugger::hang_all, call_info:%s, device_info:%s"%(call_info,device_info))
|
|
|
self.call_service.hangup_all(call_info, CallCause.HANGUP_EVENT)
|
|
|
# self.inbound_client.hangup_call(call_id, device_id, CallCause.HANGUP_EVENT)
|
|
@@ -150,6 +150,6 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
elif DeviceType.CUSTOMER.code == device_info.device_type:
|
|
|
call_info.hangup_dir = HangupDir.CUSTOMER_HANGUP.code
|
|
|
|
|
|
- if not call_info.end_time:
|
|
|
- call_info.end_time = device_info.end_time
|
|
|
+ # if not call_info.end_time:
|
|
|
+ # call_info.end_time = device_info.end_time
|
|
|
self.logger.info("hangup_dir::callId: %s, direction:%s, hangupDir:%s, cause:%s, deviceId: %s", call_info.call_id, call_info.direction, call_info.hangup_dir, cause, device_info.device_id)
|