|
@@ -546,6 +546,7 @@ class BotAgent:
|
|
|
self.accounts[user_part] = acc
|
|
|
|
|
|
while not self.is_stopping:
|
|
|
+ registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
|
|
|
self.ep.libHandleEvents(100)
|
|
|
|
|
|
def transfer(self, user_part, call_id, device_id, service_id='00000000000000000'):
|
|
@@ -582,7 +583,7 @@ class BotAgent:
|
|
|
self.release(user_part)
|
|
|
|
|
|
def register(self, **kwargs):
|
|
|
- registry.BOT_AGENT_LIVES.set(self.user_part_pool.qsize())
|
|
|
+ self.logger.info('register,come in, pool.size :%d', self.user_part_pool.qsize())
|
|
|
user_part = self.user_part_pool.get()
|
|
|
acc = self.accounts.get(user_part)
|
|
|
self.logger.info('register, user_part :%d, pool.size :%d', user_part, self.user_part_pool.qsize())
|