I like this old summary of various ways to trick a modem connected server into outputting +++ATH0, which would disconnect it.
https://opennet.ru/base/usersoft/3.txt.html
It did work on some modems with loose requirements around the timing and pauses.