It knows when it reached a machine
Answering-machine and IVR detection listens from the moment the line goes live, and stops the agent pitching over a voicemail greeting.
Answered-ness is taken from the telephony layer’s sip.callStatus, not inferred from whether any text appeared — the earlier guess billed calls nobody took.