Created
February 27, 2010 15:11
-
-
Save cloudvoxcode/316740 to your computer and use it in GitHub Desktop.
bring that unique cell phone experience to every phone call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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