|
@@ -53,6 +53,9 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
self.release(event)
|
|
|
self.logger.info("device_info:%s is null", device_id)
|
|
|
return
|
|
|
+ # 只要用户测挂机就回收
|
|
|
+ if device_info.device_type == DeviceType.CUSTOMER.code:
|
|
|
+ self.release(event)
|
|
|
|
|
|
count = len(call_info.device_list)
|
|
|
self.logger.info('ChannelHangupHandler, call_id=%s, device_id=%s, count=%s'% (call_id, device_id, count))
|
|
@@ -118,7 +121,6 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
# 全部挂机以后推送挂机状态
|
|
|
# self.logger.info('yushanghui::call_info.device_list %s', call_info.device_list)
|
|
|
if len(call_info.device_list) == 0:
|
|
|
- self.release(event)
|
|
|
self.get_call_info_record(call_info)
|
|
|
|
|
|
# 判断挂机方向 && 更新缓存
|