openFrameworks over phone

I’m dialing into openFrameworks from a landline. My button presses on the phone are displayed on screen as confirmation.

When I call in I’m routed to an Asterisk dial plan that waits for my button presses. When a button is pressed it calls a short Ruby script that makes a post request to a url sending the number of the button. A small Sinatra app receives this number and places it into a yaml file. The Sinatra app is also receiving get requests from openFrameworks. The get route in the Sinatra app returns the last number placed in the yaml file and it’s ID. Openframeworks keeps track of the ID. If it is different then the last ID it knows it is a new number and displays the number on screen.
Continue reading