Daniel-Constantin Mierla writes:
Can you list the tcp connections via rpc and see if the one you expect to be closed is still listed there?
core.tcp_list after quiting baresip shows that the tcp connection has been removed, i.e., is not anymore in the list
-- Juha