I’ve been meaning for years to set up a solid archiving system that I don’t have to manually babysit. I’ve had my eye on mailpiler (https://www.mailpiler.org/), but haven’t found the time to get up to speed on it. I’m the meantime, I drag messages to a local folder like a barbarian.
This is the route I’d go. I use FreePBX for all this, but my voip provider could do most of the work (voip.ms). There are decent softphone apps (Zoiper, Linphone, etc.) to initiate calls from and porting a number to the voip provider isn’t too difficult.