Skip to content

Instantly share code, notes, and snippets.

View howethomas's full-sized avatar
💭
Currently pairing, sleeping or walking the dogs.

Thomas Howe howethomas

💭
Currently pairing, sleeping or walking the dogs.
View GitHub Profile
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)
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
for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done
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
begin
require 'rubygems'
require 'restclient'
require 'URI'
require 'net/http'
SITE_ID = 1
options = { "silenceTimeout" => 30.0 }
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
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
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
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
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