Skip to content

Instantly share code, notes, and snippets.

@bradleyd
Created January 28, 2013 02:07
Show Gist options
  • Save bradleyd/4652344 to your computer and use it in GitHub Desktop.
Save bradleyd/4652344 to your computer and use it in GitHub Desktop.
class SuperSecretProjectCallController < Adhearsion::CallController
def run
answer
menu "tt-weasels", timeout: 8.seconds, tries: 3 do
foo.each do |k,v|
match k, v
end
timeout { do_this_on_timeout }
invalid do
invoke InvalidController
end
failure do
speak 'Goodbye'
hangup
end
end
end
def foo
{'1'=> BooController, '2'=> FooController}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment