Skip to content

Instantly share code, notes, and snippets.

@cloudvoxcode
Created February 27, 2010 15:11
Show Gist options
  • Save cloudvoxcode/316740 to your computer and use it in GitHub Desktop.
Save cloudvoxcode/316740 to your computer and use it in GitHub Desktop.
bring that unique cell phone experience to every phone call
# cell phone simulator with Adhearsion & Cloudvox (http://bit.ly/cvruby)
default {
until caller_finally_given_up?
case (rand*5).to_i
when 0 then play 'intermittent-static'
when 1 then execute 'swift', '"All circuits are busy. Please try your call again later."'
when 2 then hangup
when 3 then execute 'echo'
when 4
sleep until phone_location_changed?
hangup
end
sleep 10
end
play 'if-youd-like-to-make-a-call'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment