Skip to content

Instantly share code, notes, and snippets.

@philm
Created September 28, 2012 06:11
Show Gist options
  • Save philm/3798197 to your computer and use it in GitHub Desktop.
Save philm/3798197 to your computer and use it in GitHub Desktop.
TelAPI Inbound XML example
class TelapiResponsesController < ApplicationController
skip_before_filter :verify_authenticity_token
def show
xml = Telapi::InboundXml.new do
Say('Hi there', :loop => 3, :voice => 'man')
Say('Hello, my name is Sally.', :voice => 'woman')
Say('Now I will not stop talking.', :loop => 0)
end
respond_to do |format|
format.xml { render :xml => xml.response }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment