Skip to content

Instantly share code, notes, and snippets.

@levicole
Created October 23, 2009 03:17
Show Gist options
  • Select an option

  • Save levicole/216610 to your computer and use it in GitHub Desktop.

Select an option

Save levicole/216610 to your computer and use it in GitHub Desktop.
render :xml => Twilio::Verb.new { |v|
v.gather(:numDigits => 1, :timeout => 5, :action => recording_script_notification_url(@notification)) do
v.play @notification.voicemessage_url
v.say "If you would like to record again, press one, otherwise stay on the line"
end
v.say "Your notification is being sent"
v.redirect send_notification_notification_url(@notification)
}.response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment