Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Added conference caller tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dickey committed Sep 16, 2011
1 parent a8c4419 commit 969c432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/twilio_controller.rb
Expand Up @@ -39,7 +39,7 @@ def call_with_code
def conference_ended
conference_call = ConferenceCall.find_by_code(params['Digits'])
conference_caller = conference_call.conference_callers.where(:phone_number => params['Caller'])
conference_caller.duration = DateTime.to_i - conference_caller.to_i
conference_caller.duration = DateTime.to_i - conference_caller.created_at.to_i
conference_caller.save!
render :nothing => true
end
Expand Down

0 comments on commit 969c432

Please sign in to comment.