A request that came in on a server port (the protected ports' TCP
listeners and UDP sockets) was answered through a closure that kept a
descriptor's number: its connection's over TCP, a socket's over UDP.
The daemon closes a connection's descriptor when the peer has ended
the connection, and the kernel gives a closed descriptor's number out
again. A call's later answers go through the closure of the call's
latest request when the user answers or refuses or the ringing ends
(the 200 of an Accept, a 486, a 480): they were written to that
number, whatever had it by then, the connection of whoever had
connected since among them.
A closure now keeps the port its request came in on and the peer it
came from, or which of the two UDP ports its answer leaves by. Over
TCP an answer is written to the newest connection the daemon holds
from that peer to that port, and is not sent where it holds none: the
journal says so once in a run. Over UDP it leaves from the socket its
port has at that moment, if it has one.
Tested: the daemon of this commit on the workstation against a
stand-in network that closes the connection its INVITE came on while
the call rings and then connects from another host, from another
port, from the same port to the daemon's other port or from the same
port to the same one, and one that resets the connection right behind
its INVITE and makes it again (the fp6 journal's
2026-12-04-pani-in-dialog capture, bench/); and on the dev phone on
KPN, where it answered a call that came in and the two requests that a
text to the phone's own number brings (the journal's
2026-12-04-imsd-1.2.7-range-on-dev-phone capture).