Programmatic TwiML Creation
I'd like to build a similar set of binaries for the Server side that would let you programmatically build a Response XML document to tell Twilio's phone system how to process incoming and outgoing calls. Consider the following pseudocode:
CallInstructions ci = new CallInstructions();
ci.Add(new Say("This is the San Diego Public Library, with an important message."));
ci.Add(new Say("You have " + libraryAccount.MissingBooks.Count + " books overdue. if you would like to hear the titles, Press 1 now."));
The underlying serializer would handle formatting the output, but you would be able to write procedural code that would handle multiple situations, in a much cleaner way than is possible with current coding conventions.
This addition is currently planned for the v1.0 release.