|
@@ -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"""
|