|
@@ -567,7 +567,9 @@ class BotAgent:
|
|
|
|
|
|
while not self.is_stopping:
|
|
while not self.is_stopping:
|
|
registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
|
|
registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
|
|
- self.logger.info("------------------>pjsua::%s", len(self.accounts))
|
|
|
|
|
|
+ if len(self.accounts) == self.user_part_pool.qsize():
|
|
|
|
+ self.logger.info("------------------>flush register ::%s", len(self.accounts))
|
|
|
|
+ self.accounts[0].acc.setRegistration(renew=True)
|
|
self.ep.libHandleEvents(100)
|
|
self.ep.libHandleEvents(100)
|
|
|
|
|
|
def transfer(self, user_part, call_id, device_id, service_id='00000000000000000'):
|
|
def transfer(self, user_part, call_id, device_id, service_id='00000000000000000'):
|