What you want is something like Telebahn x25.org ... You have an X.25 PAD on your end, routing over the internet to an X.25 PAD on the remote end where the BBS or timesharing service is. With some trickery you can have an ATA hand off the dialed digits via Asterisk or what have you, always end up connected to the same modem hanging off your local server, translate the dialed number to an X.25 address. Most of us that were playing with it have moved on I think. It would have been like the old telenet / tymnet had more people developed interest in it.
I've still got some of the stuff for my asterisk dial-any-number thing... this was one variant I had working between 2018 and 2023 (probably some bits missing, sorry.)
https://github.com/dkgrizzly/bbsdial
It looks up the dialed number in a database, and passes the call on to telnet or a local program, if the number isn't found in the DB it can route the call to all circuits busy, number not in service, etc.
The more recent version I've been building isn't as strict about the modem pool, it instead flips the caller ID to be called number, and any modem in the pool can accept the call, a customized build of mgetty grabs the called number from the caller ID number field, and does the final mapping of number to function / host. The version currently on github assigns a modem that is marked as unassigned and stores back to the DB what the called number was before passing the call to the modem. When the call ends, the modem is once again unassigned.
The new version of it runs on two cisco routers hosting almost everything, a 72 analog FXS card in each, 12 T1 ports on each in a back-to-back configuration between them, asterisk running on a UCS-E server blade inside one of the routers, and a Sun Blade 150 stacked on top with three MultiModem PCI 8-modem cards for a 24 modem dialup bank running on NetBSD.
I would have loved some digital modem PVDMs for the ciscos, but those are insanely expensive. Last time I checked, a single 12-port digital modem PVDM was selling for more than my entire stack of equipement cost. The 36-port PVDMs were north of $3k US.
Other projects have risen to the top of the pile, and the dialup stuff filtered to the bottom. Maybe for VCFMW 2026 I'll drag the mobile rack along and get a few T1's handed off from joe_z.