shanghui hai 3 meses
pai
achega
cc27ce4b60
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/callcenter/esl/handler/channel_hangup_handler.py

+ 1 - 1
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -157,7 +157,7 @@ class ChannelHangupHandler(EslEventHandler):
             sip_status.append(value.sip_status)
             hangup_cause.append(value.hangup_cause)
         self.logger.info("get_call_info_record: %s", records)
-        threading.Thread(target=self._update_record_in_thread, args=(call_info.call_id, set(records), ",".join(sip_status), ",".join(hangup_cause),call_info.answer_count)).start()
+        threading.Thread(target=self._update_record_in_thread, args=(call_info.call_id, list(set(records)), ",".join(sip_status), ",".join(hangup_cause),call_info.answer_count)).start()
 
     def _update_record_in_thread(self, call_id, records, sip_status, hangup_cause, answer_count):
         """用于在独立线程中执行 update_record"""