I finally managed to solve the last problem. In fact, with the migration to Debian 12, the firewall interrupts UDP sessions, even established, and so my server was no longer responding to INVITE from my provider.
As stated in the following link I had to add the parameter “qualify_frequency = 120” in the AOR of my endpoint. Since then, everything has worked fine.