One of our clients recently started to get frustrated with VOIP/Telco companies that wanted to charge him an arm and a leg to configure his phones to do something customized. Luckily there are some new cloud-based communication web services with killer APIs like Twillio and Tropo. With these tools any developer can code call functionality into their application, or perhaps even mirror the functionality of a call system with a little Ruby Sinatra Application.
The following video is exactly that Ruby Sinatra App, developed by our own Jacob Swanner:
Sorry, I can’t show you the code how we did it (this is client work). However, let me show you an example of the API code. When someone calls in to the number your service gives you, the cloud service makes a call to your Ruby app and your Ruby app tells Twillio / Tropo what to do. Here’s a quick example from Twillio:
As you can see, the user will be played a Greeting and then asked for their zipcode. Once that zipcode has been captured the cloud service calls back to your Ruby app with the entered information, your Ruby app would retrieve the weather information (inside your controller), then perhaps render this XML View:
There are prettier ways to write XML in Ruby, but you get the picture. The response gets read back to the caller. Both the Twillio documentation and the Tropo documentation are quite useful, especially the examples and both services are reasonably cheap.
If you need any help implementing a call center / voice interface to your app, feel free to give us a ring. We love this stuff.






