Many DSL access devices can be controlled remotely using the TR-069 protocol. For example, you can use an ESP8266 to establish SSH connections via WLAN to dial numbers or perform connection diagnostics. There are many instructions how to connect e.g. a doorbell with the telephone system.
Hints to the TR064 protocol can also be found here:
https://en.wikipedia.org/wiki/TR-069