Open StefanYohansson opened 2 years ago
so it's more than just memleaks, it's about a misbehaviour too ? My understanding is that it still sends REGISTERs towards the removed gw.
yes, it is more than a memory leak, the gateway is not visible via sofia status
or any other sofia command but activating the siptrace on, I can still see ongoing REGISTERs to the REGISTRAR server.
In this example, the gateway is registering in an extension in the same FS but I can reproduce the same issue with a gateway registering elsewhere, it is this way for the sake of simplicity in reproducing the problem.
Describe the bug I am using a script to create gateways based on some users logging into an interface. The steps the script execute:
The problem is the script executes these steps async and sometimes an add and delete can occur at the same time. This leads to sometimes a gateway being marked to deletion, it is deleted from the gateway list but if I enable sofia debug it is still sending registers.
To Reproduce Steps to reproduce the behavior:
python main.py 10 3 2 150
sofia global siptrace on
script parameters explanation: 10 new users per second 3 deleted every 2 cycles (every 20 users added, delete 3) 150 new users at total
Expected behavior After the script removes all the gateways, it should stop sending registers for that gateway.
Package version or git hash
Script: https://github.com/StefanYohansson/dynamic_gateway_directory_creator Way to execute: copy example.ini to config.ini and change paths to something like
and execute step 2 with python3.