sartajSIngh
sartajSIngh

Reputation: 3

Accessing call start time in Rails from Adhearsion

I have built a Rails application and connected with Adhearsion for outbound calls via url (virginia). I need to get the time at which the outbound call is answered. How can I get that?

Upvotes: -1

Views: 109

Answers (1)

SteveTurczyn
SteveTurczyn

Reputation: 36860

The Call object has an instance method end_time

Returns the time at which the call began. For inbound calls this is the time at which the call was offered to Adhearsion. For outbound calls it is the time at which the remote party answered.

Returns: (Time) — the time at which the call began. For inbound calls this is the time at which the call was offered to Adhearsion. For outbound calls it is the time at which the remote party answered.

Described in the documentation here... http://rubydoc.info/gems/adhearsion/Adhearsion/Call

Upvotes: 0

Related Questions