To Learn About the Voice Modem Extensions for Windows 95, Press 1 Now (1996)
web.archive.org
web.archive.org
> This function is designed to help telephony apps cooperate in implementing "toll-saver" features. When no messages are waiting, COMDIAL picks up after five rings. When messages are waiting, it picks up after three rings. This way, when I call to listen to my messages and the phone rings four times, I know there are no messages waiting. I can hang up before COMDIAL answers and avoid those hefty long distance charges.
These days I just tunnel TCP over DNS (badly)
The telephone companies stopped letting you do it eventually.
Edit: It does exist, works with SIP, and there are even questions in SO about it: https://stackoverflow.com/questions/64694122/python-make-a-c...
That's one of the things Google Voice does, and there are a bunch of other similar "find me/follow me" services offered through various other providers or as a feature in a phone system that can do the same thing.
Unknown callers get prompted to say their name and then I can choose whether to answer the call or not.