|
@@ -92,13 +92,13 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
next_command = call.next_commands[0] if len(call.next_commands) > 0 else None
|
|
|
if next_command:
|
|
|
self.next_cmd(call, device, next_command, cause)
|
|
|
- sys.stdout.flush() # 强制刷新输出缓冲区
|
|
|
return
|
|
|
|
|
|
# 一般情况下,挂断其他所有设备
|
|
|
if device.cdr_type <= 4 and not call.end_time:
|
|
|
call.end_time = device.end_time
|
|
|
- self.call_service.hangup_all(call, CallCause.HANGUP_EVENT)
|
|
|
+ self.inbound_client.hangup_call(call_id, device_id, CallCause.HANGUP_EVENT)
|
|
|
+ # self.call_service.hangup_all(call, CallCause.HANGUP_EVENT)
|
|
|
|
|
|
# 判断挂机方向 && 更新缓存
|
|
|
self.hangup_dir(call, device, cause)
|