I haven't written anything up, but I might do that.
Asterisk is extremely powerful and reliable with good documentation. Because so many companies use it, I knew if something wasn't working that it was definitely on my configuration. Once you have Asterisk running on the LAN, you can you use any VOIP softphone app to connect and make "calls" to your scripts for testing.
I bought an analog telephone adapter (ATA) to connect the phone to the LAN as well. At that point, the ATA is the bridge between the PBX and the physical phone and it can now make and receive calls (to destinations reachable by the PBX).
If you want to make your scripts and devices accessible to the "real phone system" (PSTN) you can hook your ATA to a phone carrier (some ATA support this with a secondary port) or have asterisk connect to an external provider. I have not done this step.
There is definitely a bit of steps involved, so it would make a good write-up. A lot of potential to do some fun things with it.