Browse files

reordered voice memos in descending

  • Loading branch information...
1 parent 1086df3 commit 9e59a3082d1bcd69985c8265ca7d9dbd483d77a2 @chrismatthieu committed Jul 13, 2011
Showing with 6 additions and 6 deletions.
  1. +3 −3 README.rdoc
  2. +1 −1 app/controllers/voicememos_controller.rb
  3. +2 −2 tropo_voicememo.rb
View
6 README.rdoc
@@ -6,8 +6,8 @@ This is a Tropo (http://tropo.com) Scripting application written in Ruby that ru
== Setup
-Rename config/config.yml.sample to config/config.yml and edit your AWS key information and bucket
-Create a developer account on Tropo and a Scripting App using the Ruby script in tropo_voicememo.rb
-Run the Rails app on localhost using Tunnlr (http://tunnlr.com) or deploy it to Heroku or other hosting provider
+* Rename config/config.yml.sample to config/config.yml and edit your AWS key information and bucket
+* Create a developer account on Tropo and a Scripting App using the Ruby script in tropo_voicememo.rb
+* Run the Rails app on localhost using Tunnlr (http://tunnlr.com) or deploy it to Heroku or other hosting provider
Have Fun!
View
2 app/controllers/voicememos_controller.rb
@@ -5,7 +5,7 @@ def index
# Build array of conference call recordings that have not yet been listened to by the callerid
@voicememos = []
- @conferences = Conference.all
+ @conferences = Conference.find(:all, :order => "created_at desc")
@conferences.each do |conference|
if conference.voicememos.find(:first, :conditions => ['callerid = ?', params[:callerid]]).nil?
@voicememos.push(conference)
View
4 tropo_voicememo.rb
@@ -4,7 +4,7 @@
myvoice = "Kate"
-#apiurl = 'http://web1.tunnlr.com:11053' #test
+# apiurl = 'http://web1.tunnlr.com:11053' #test
apiurl = 'http://voiceboard.heroku.com' #production
@@ -69,7 +69,7 @@
if confdata
#join existing conference
- confname = confjson[0]["conference"]["filename"]
+ confname = confdata[0]["conference"]["filename"]
say "joining existing voice board conference", {:voice => myvoice}
conference confname, {
:terminator => "#",

0 comments on commit 9e59a30

Please sign in to comment.