DavidLiu 3 月之前
父節點
當前提交
bf57665c39
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/core/voip/bot.py

+ 2 - 1
src/core/voip/bot.py

@@ -573,7 +573,8 @@ class BotAgent:
     def flush_register_expire(self):
         if len(self.accounts) == self.user_part_pool.qsize():
             self.logger.info("------------------>flush register ::%s", len(self.accounts))
-            self.accounts[0].setRegistration(renew=True)
+            user_part = self.user_part_range[0]
+            self.accounts[user_part].setRegistration(renew=True)
 
     def transfer(self, user_part, call_id, device_id, service_id='00000000000000000'):
         if self.acd_service: