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