What kind of trunks I primarily deal with Oaisys (Talkument and Tracer). I had installed a customer supplied devive that connects to analog lines, then connects to any PC or server to record the call. :
https://www.digital-loggers.com/f8.html

The device itself has no storage on it. The customer installed the software on his server, but the guide did recommend a dedicated PC.

Seemed to work ok. It recieved the diaing or incoming phone numbers from DTMF and caller ID.

Obviously this would be a trunk tap solution and would be lacking informaion such as extensions (unless there is SMDR input which I do not think it had).