Sha256: ecc6c1871e44a4da0bf3240c9436c9e7abff1f72357956ba6cf89d9b4b96754f
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
from_pwnyourphone { # You rock! Be awesome and record us a message! We'll put supportive messages on the podcast!" # Get ready to record. 5, 4, 3, 1 *BEEP* play %(you-rock record-us-a-message we-put-messages-on-podcast get-ready five-countdown beep) record :for => 3.minutes, :to => "/recordings/pwner.#{Time.now.to_i}.#{calleridnumber}.gsm" } internal { callee = User.find_by_ivr_extension extension if callee voicemail extension if last_dial_status != :answer #elsif extension.to_s =~ //#/^(((\d{1,3})?\d{1{3})?[1-9]\d{2})?[1-9]\d{6}$/ # puts "got here" # dial "SIP/#{extension}@sipphone" else case extension when 21 then play weather_report when 32 then dial "SIP/zoip@demo.zoip.org" when 888 then loop { print '.'; XBMC.sendkey XBMC.translate(wait_for_digit) } when 9999 if rand(20) == 0 play %W(a-connect-charge-of #{rand(50) + 10} cents-per-minute will-apply) sleep 1.second play %w(just-kidding-not-upset) end check_voicemail caller.voicemailbox else play 'all-your-base' end end } old { case extension when 1 then play weather_report("Richardson, Texas") when 2 then play weather_report(input(5, :play => 'zip-code')) when 3 then +xbmc when 4 dial :tweedledee end } xbmc { loop { print '.' XBMC.sendkey XBMC.translate(wait_for_digit) } } from_gizmo { #dial :tweedledum +xbmc }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adhearsion-0.7.0 | new_projects/extensions.rb |