class Adhearsion::CallController::Dial::JoinStatus
Attributes
end_time[RW]
Time at which the join was broken
result[R]
The result of the attempt to join calls Can be:
-
:joined - The calls were sucessfully joined
-
:no_answer - The attempt to dial the third-party was cancelled before they answered
-
:unconfirmed - The callee did not complete confirmation
-
:lost_confirmation - The callee completed confirmation, but was beaten by another
-
:error - The call ended with some error
start_time[RW]
The time at which the calls were joined
Public Class Methods
new()
click to toggle source
# File lib/adhearsion/call_controller/dial.rb, line 499 def initialize @result = :no_answer end
Public Instance Methods
duration()
click to toggle source
The duration for which the calls were joined. Does not include time spent in confirmation controllers or after being separated.
# File lib/adhearsion/call_controller/dial.rb, line 513 def duration if start_time && end_time end_time - start_time else 0.0 end end
ended(time)
click to toggle source
# File lib/adhearsion/call_controller/dial.rb, line 538 def ended(time) @end_time = time end
errored!()
click to toggle source
# File lib/adhearsion/call_controller/dial.rb, line 521 def errored! @result = :error end
lost_confirmation!()
click to toggle source
# File lib/adhearsion/call_controller/dial.rb, line 529 def lost_confirmation! @result = :lost_confirmation end
started(time)
click to toggle source
# File lib/adhearsion/call_controller/dial.rb, line 533 def started(time) @start_time = time @result = :joined end
unconfirmed!()
click to toggle source
# File lib/adhearsion/call_controller/dial.rb, line 525 def unconfirmed! @result = :unconfirmed end