This file contains hidden or 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
| namespace :deploy do | |
| PRODUCTION_APP = 'myapp' | |
| STAGING_APP = 'myapp-staging' | |
| def run(*cmd) | |
| system(*cmd) | |
| raise "Command #{cmd.inspect} failed!" unless $?.success? | |
| end | |
| def confirm(message) |
This file contains hidden or 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
| Module.constants.select do |constant_name| | |
| constant = eval constant_name | |
| if not constant.nil? and constant.is_a? Class and constant.superclass == ActiveRecord::Base | |
| constant | |
| end | |
| end |
This file contains hidden or 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
| for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done |
This file contains hidden or 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
| me: test | |
| tomtropo: Hey, chatter. Thanks for signing up for our preferred customer program. You will receive exclusive savings offers to your mobile phone, and receive ten percent off all future purchases. Thanks for shopping at William Hows hat store. | |
| Need a phone number to register. Hit me | |
| Thanks for that. noChoice will be registered. | |
| Sent at 3:23 PM on Monday |
This file contains hidden or 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
| begin | |
| require 'rubygems' | |
| require 'restclient' | |
| require 'URI' | |
| require 'net/http' | |
| SITE_ID = 1 | |
| options = { "silenceTimeout" => 30.0 } | |
This file contains hidden or 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
| 00911 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answering. | |
| 00912 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answered. | |
| 00913 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->block(1000) | |
| 00914 00-1 7:13:07 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->prompt("Hey, chatter. Thanks for signing up for our preferred customer program. You will receive exclusive savings offers to your mobile phone, and receive ten percent off all future purchases. Thanks for shopping at William Hows hat store.",true,"","",0.3,any,30000) | |
| 00915 036c 7:13:07 PM RTSP Message(i): SETUP rtsp://127.0.0.1:9974/synthesizer/ RTSP/1.0 CSeq: 2 Session: sas_2-8-smj8gto3tropo-1890677328-0f63c008-00002494-0000036c Transport: RTP/AVP;unicast;destination=10.6.93.201;client_port=1974-1975 X-Voxeo-VXML-Session-Id: sas_2-8-smj8gto3tropo X-Voxeo-Account-Id: 1341 X-Voxeo-App-Id: tropo | |
| 00916 036c 7:13:07 PM RT |
This file contains hidden or 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
| 00911 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answering. | |
| 00912 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answered. | |
| 00913 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->block(1000) | |
| 00914 00-1 7:13:07 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->prompt("Hey, chatter. Thanks for signing up for our preferred customer program. You will receive exclusive savings offers to your mobile phone, and receive ten percent off all future purchases. Thanks for shopping at William Hows hat store.",true,"","",0.3,any,30000) | |
| 00915 036c 7:13:07 PM RTSP Message(i): SETUP rtsp://127.0.0.1:9974/synthesizer/ RTSP/1.0 CSeq: 2 Session: sas_2-8-smj8gto3tropo-1890677328-0f63c008-00002494-0000036c Transport: RTP/AVP;unicast;destination=10.6.93.201;client_port=1974-1975 X-Voxeo-VXML-Session-Id: sas_2-8-smj8gto3tropo X-Voxeo-Account-Id: 1341 X-Voxeo-App-Id: tropo | |
| 00916 036c 7:13:07 PM RT |
This file contains hidden or 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
| 00911 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answering. | |
| 00912 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878] is answered. | |
| 00913 00-1 7:13:06 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->block(1000) | |
| 00914 00-1 7:13:07 PM Call[C09B3299-FE41-4E5D-9164C5CC1E6AE364->9990106878]->prompt("Hey, chatter. Thanks for signing up for our preferred customer program. You will receive exclusive savings offers to your mobile phone, and receive ten percent off all future purchases. Thanks for shopping at William Hows hat store.",true,"","",0.3,any,30000) | |
| 00915 036c 7:13:07 PM RTSP Message(i): SETUP rtsp://127.0.0.1:9974/synthesizer/ RTSP/1.0 CSeq: 2 Session: sas_2-8-smj8gto3tropo-1890677328-0f63c008-00002494-0000036c Transport: RTP/AVP;unicast;destination=10.6.93.201;client_port=1974-1975 X-Voxeo-VXML-Session-Id: sas_2-8-smj8gto3tropo X-Voxeo-Account-Id: 1341 X-Voxeo-App-Id: tropo | |
| 00916 036c 7:13:07 PM RT |
This file contains hidden or 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
| require 'rest_client' | |
| answer | |
| wait 1000 | |
| say "Uploading your caller ID to the site now" | |
| RestClient.post 'http://mobilemaillist.heroku.com/subscribers', :subscriber => {:callerid => '987654321', :site_id => '1'} | |
| hangup |
This file contains hidden or 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
| 00-1 6:55:25 PM Application[http://mistermashup.voipmashups.com/call.rb] ver(1.0.100.10) has been created. | |
| 01278 00-1 6:55:25 PM DNS found hosted Application[http://mistermashup.voipmashups.com/call.rb] ver(1.0.100.10) for sip:[email protected]:5060 | |
| 01279 6716 6:55:25 PM # ----------- # line 436 | |
| 01280 6716 6:55:25 PM # connecting the call to another number () # line 437 | |
| 01281 6716 6:55:25 PM # ----------- # line 438 | |
| 01282 6716 6:55:25 PM # line 439 | |
| 01283 6716 6:55:25 PM answer # line 440 | |
| 01284 6716 6:55:25 PM log "Inbound call answered at #{Time.now}" # line 441 | |
| 01285 6716 6:55:25 PM wait 2000 # line 442 | |
| 01286 6716 6:55:25 PM result = record "Hello. Thanks for calling. Leave your message at the beep.", # line 443 |