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
callOptions = { :channel => "VOICE", | |
:answerOnMedia => false, | |
:timeout => 30.0, | |
:callerID => applicationCallerID | |
} | |
sayOptions = {:voice => "kate"} | |
conferenceOptions = { :mute => false, |
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
# This script is called via HTTP. | |
# This is to demo Tropo conferencing functionality (via hosted script). | |
# Define Global Options | |
applicationCallerID = "6502916707" | |
# Method to create timeStamp as our conferenceID | |
def get_conference_id() | |
timeVar = Time.new | |
formattedTime = timeVar.strftime("%Y%H%M%S") |
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
# This script is called via HTTP. | |
# This is to demo Tropo conferencing functionality (via hosted script). | |
# Define Global Options | |
applicationCallerID = "6502916707" | |
# Method to create timeStamp as our conferenceID | |
def get_conference_id() | |
timeVar = Time.new | |
formattedTime = timeVar.strftime("%Y%H%M%S") |
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
00000 00-1 01:32:40 AM Trying to create application for URL=http://hosting.tropo.com/46294/www/joopconnect2.rb and type=jruby | |
00001 00-1 01:32:40 AM Tropo app dir is c:\tropo_app_home | |
00002 00-1 01:32:40 AM Application[http://hosting.tropo.com/46294/www/joopconnect2.rb:cus] ver(1.0.42856) has been created. | |
00003 00-1 01:32:40 AM Found hosted Application[http://hosting.tropo.com/46294/www/joopconnect2.rb:cus] ver(1.0.42856) [token=f419d15fd2c13244ae4da5787fc0136872946078c2097526064a6ee86e9158d4aefb74add28f59b5aa5cbe68] | |
00004 00-1 01:32:40 AM Mgr Cached app=Application[http://hosting.tropo.com/46294/www/joopconnect2.rb:cus] ver(1.0.42856) for token=f419d15fd2c13244ae4da5787fc0136872946078c2097526064a6ee86e9158d4aefb74add28f59b5aa5cbe68,_cache.size=0 | |
00005 00-1 01:32:40 AM Thread http/0.0.0.0/8080-t-49 acquired engine of type jruby, activeEngines = 5 | |
00006 00-1 01:32:40 AM Thread http/0.0.0.0/8080-t-49 got engine to compile script | |
00007 00-1 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
# This script is called via HTTP. | |
options = { :channel => "VOICE", | |
:answerOnMedia => false, | |
:timeout => 30.0, | |
:callerID => "6502916707" | |
} | |
# Make an outbound call with the above options. | |
event = call 'tel:+1' + $numberToCall, options |
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 'spec_helper' | |
describe GamesController do | |
describe 'GET#index' do | |
before do | |
@fake_games = [ double('game1'), double('game2'), double('game3') ] | |
end | |
it 'gets all games' do | |
Game.should_receive(:all).and_return(@fake_games) |